llvm.org GIT mirror llvm / a10fd6d
Add predicates for distinguishing 32-bit and 64-bit modes. The 'sparc' architecture produces 32-bit code while 'sparcv9' produces 64-bit code. It is also possible to run 32-bit code using SPARC v9 instructions with: llc -march=sparc -mattr=+v9 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178524 91177308-0d34-0410-b5e6-96231b3b80d8 Jakob Stoklund Olesen 7 years ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1919 //===----------------------------------------------------------------------===//
2020 // Feature predicates.
2121 //===----------------------------------------------------------------------===//
22
23 // True when generating 32-bit code.
24 def Is32Bit : Predicate<"!Subtarget.is64Bit()">;
25
26 // True when generating 64-bit code. This also implies HasV9.
27 def Is64Bit : Predicate<"Subtarget.is64Bit()">;
2228
2329 // HasV9 - This predicate is true when the target processor supports V9
2430 // instructions. Note that the machine may be running in 32-bit mode.