summaryrefslogtreecommitdiff
path: root/lib/Target/AArch64/Utils/AArch64BaseInfo.h
diff options
context:
space:
mode:
authorTim Northover <Tim.Northover@arm.com>2013-05-04 16:53:46 +0000
committerTim Northover <Tim.Northover@arm.com>2013-05-04 16:53:46 +0000
commit45db92038bf540fbbd8dfe5dff520aa8566d7cef (patch)
treeca210cce14ab88407e790cc51f1718b98218cbfa /lib/Target/AArch64/Utils/AArch64BaseInfo.h
parent0c66f30325848014eda3203da5fae4c2e71a2884 (diff)
downloadllvm-45db92038bf540fbbd8dfe5dff520aa8566d7cef.tar.gz
llvm-45db92038bf540fbbd8dfe5dff520aa8566d7cef.tar.bz2
llvm-45db92038bf540fbbd8dfe5dff520aa8566d7cef.tar.xz
AArch64: implement large code model access to global variables.
The MOVZ/MOVK instruction sequence may not be the most efficient (a literal-pool load could be better) but adding that would require reinstating the ConstantIslands pass. For now the sequence is correct, and that's enough. Beware, as of commit GNU ld does not appear to support the relocations needed for this. Its primary purpose (for now) will be to support JITed code, since in that case there is no guarantee of where your code will end up in memory relative to external symbols it references. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181117 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/AArch64/Utils/AArch64BaseInfo.h')
-rw-r--r--lib/Target/AArch64/Utils/AArch64BaseInfo.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Target/AArch64/Utils/AArch64BaseInfo.h b/lib/Target/AArch64/Utils/AArch64BaseInfo.h
index 1b773d632e..9a1ca6127a 100644
--- a/lib/Target/AArch64/Utils/AArch64BaseInfo.h
+++ b/lib/Target/AArch64/Utils/AArch64BaseInfo.h
@@ -1037,7 +1037,14 @@ namespace AArch64II {
// MO_LO12 - On a symbol operand, this represents a relocation containing
// lower 12 bits of the address. Used in add/sub/ldr/str.
- MO_LO12
+ MO_LO12,
+
+ // MO_ABS_G* - Represent the 16-bit granules of an absolute reference using
+ // movz/movk instructions.
+ MO_ABS_G3,
+ MO_ABS_G2_NC,
+ MO_ABS_G1_NC,
+ MO_ABS_G0_NC
};
}