summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMFastISel.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-09-02 02:30:46 +0000
committerEric Christopher <echristo@apple.com>2010-09-02 02:30:46 +0000
commit2020d698007ddbe3ca61f873defeac9a2cd64be2 (patch)
tree67a309a078c13d2286a90eab2b80bc8646be044c /llvm/lib/Target/ARM/ARMFastISel.cpp
parentf0882f90f31c4712633c8becff14bd04391276e6 (diff)
downloadbcm5719-llvm-2020d698007ddbe3ca61f873defeac9a2cd64be2.tar.gz
bcm5719-llvm-2020d698007ddbe3ca61f873defeac9a2cd64be2.zip
Clang's -ccc-host-triple was ignoring the arch specifier on my triple,
I don't need to implement this quite yet - and not for ConstantInt anyhow. llvm-svn: 112798
Diffstat (limited to 'llvm/lib/Target/ARM/ARMFastISel.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMFastISel.cpp25
1 files changed, 3 insertions, 22 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp
index 866b14fab3a..ee4a664dd31 100644
--- a/llvm/lib/Target/ARM/ARMFastISel.cpp
+++ b/llvm/lib/Target/ARM/ARMFastISel.cpp
@@ -323,28 +323,9 @@ unsigned ARMFastISel::FastEmitInst_extractsubreg(MVT RetVT,
}
unsigned ARMFastISel::TargetMaterializeConstant(const Constant *C) {
- const ConstantInt *CI = dyn_cast<ConstantInt>(C);
- if (!CI) return 0;
-
- unsigned Opc;
- bool Signed = true;
- EVT VT = TLI.getValueType(CI->getType(), true);
-
- switch (VT.getSimpleVT().SimpleTy) {
- default: return 0;
- case MVT::i1: Signed = false; // FALLTHROUGH to handle as i8.
- case MVT::i8:
- case MVT::i16:
- case MVT::i32:
- Opc = isThumb ? ARM::t2MOVi32imm : ARM::MOVi32imm; break;
- }
-
- unsigned Reg = createResultReg(TLI.getRegClassFor(VT));
- AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(Opc),
- Reg)
- .addImm(Signed ? (uint64_t) CI->getSExtValue() :
- CI->getZExtValue()));
- return Reg;
+ // TODO: Implement this for floating point constants and integer constants
+ // if we care about non-v6 architectures.
+ return 0;
}
bool ARMFastISel::isTypeLegal(const Type *Ty, EVT &VT) {
OpenPOWER on IntegriCloud