summaryrefslogtreecommitdiff
path: root/lib/Target/Hexagon/MCTargetDesc
diff options
context:
space:
mode:
authorJyotsna Verma <jverma@codeaurora.org>2013-03-01 17:37:13 +0000
committerJyotsna Verma <jverma@codeaurora.org>2013-03-01 17:37:13 +0000
commitef94c6c85eed42d16fde51ee4415d27bb281a2ca (patch)
tree22a49c445983c67f187242e481d6f02b4afe4093 /lib/Target/Hexagon/MCTargetDesc
parentae1dbb39f7f769ac83ec2ec6a6c243c26c2aba02 (diff)
downloadllvm-ef94c6c85eed42d16fde51ee4415d27bb281a2ca.tar.gz
llvm-ef94c6c85eed42d16fde51ee4415d27bb281a2ca.tar.bz2
llvm-ef94c6c85eed42d16fde51ee4415d27bb281a2ca.tar.xz
Hexagon: Add constant extender support framework.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176358 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Hexagon/MCTargetDesc')
-rw-r--r--lib/Target/Hexagon/MCTargetDesc/HexagonBaseInfo.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/Target/Hexagon/MCTargetDesc/HexagonBaseInfo.h b/lib/Target/Hexagon/MCTargetDesc/HexagonBaseInfo.h
index 5f9718bb36..d4a93b5c87 100644
--- a/lib/Target/Hexagon/MCTargetDesc/HexagonBaseInfo.h
+++ b/lib/Target/Hexagon/MCTargetDesc/HexagonBaseInfo.h
@@ -154,6 +154,28 @@ namespace HexagonII {
// *** The code above must match HexagonInstrFormat*.td *** //
+ // Hexagon specific MO operand flag mask.
+ enum HexagonMOTargetFlagVal {
+ //===------------------------------------------------------------------===//
+ // Hexagon Specific MachineOperand flags.
+ MO_NO_FLAG,
+
+ HMOTF_ConstExtended = 1,
+
+ /// MO_PCREL - On a symbol operand, indicates a PC-relative relocation
+ /// Used for computing a global address for PIC compilations
+ MO_PCREL,
+
+ /// MO_GOT - Indicates a GOT-relative relocation
+ MO_GOT,
+
+ // Low or high part of a symbol.
+ MO_LO16, MO_HI16,
+
+ // Offset from the base of the SDA.
+ MO_GPREL
+ };
+
} // End namespace HexagonII.
} // End namespace llvm.