commit | 173c7d47504128aad01af4e23b1daa139531b5b2 | [log] [tgz] |
---|---|---|
author | Tim Northover <tnorthover@apple.com> | Tue Feb 14 20:56:18 2017 +0000 |
committer | Tim Northover <tnorthover@apple.com> | Tue Feb 14 20:56:18 2017 +0000 |
tree | 31fc988d02d905a71a58491309f78966f931ccc2 | |
parent | dca651ff6c10d4fdc35c434d94a27b8bbb0814a6 [diff] |
GlobalISel: introduce G_PTR_MASK to simplify alloca handling. This instruction clears the low bits of a pointer without requiring (possibly dodgy if pointers aren't ints) conversions to and from an integer. Since (as far as I'm aware) all masks are statically known, the instruction takes an immediate operand rather than a register to specify the mask. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295103 91177308-0d34-0410-b5e6-96231b3b80d8