summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-11-13 17:58:48 +0000
committerTim Northover <tnorthover@apple.com>2014-11-13 17:58:48 +0000
commit650b0ee53b738d8e11370ac5baf9fc2c7d0cede3 (patch)
tree4f16d6260dcc2be66cb5f57d2ec207fa323d3670 /llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
parent6ac65e4b6d6e92425228a98a9f6ee092d2317631 (diff)
downloadbcm5719-llvm-650b0ee53b738d8e11370ac5baf9fc2c7d0cede3.tar.gz
bcm5719-llvm-650b0ee53b738d8e11370ac5baf9fc2c7d0cede3.zip
ARM: add @llvm.arm.space intrinsic for testing ConstantIslands.
Creating tests for the ConstantIslands pass is very difficult, since it depends on precise layout details. Having the ability to precisely inject a number of bytes into the stream helps greatly. llvm-svn: 221903
Diffstat (limited to 'llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
index 4ab05f910ff..7a315c4b2ef 100644
--- a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
@@ -674,6 +674,8 @@ unsigned ARMBaseInstrInfo::GetInstSizeInBytes(const MachineInstr *MI) const {
++NumEntries;
return NumEntries * EntrySize + InstSize;
}
+ case ARM::SPACE:
+ return MI->getOperand(1).getImm();
}
}
OpenPOWER on IntegriCloud