diff options
author | Owen Anderson <resistor@mac.com> | 2008-09-05 00:06:23 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-09-05 00:06:23 +0000 |
commit | 95267a1e671efc3c14e916b6978bbb15973b4cdc (patch) | |
tree | aa96525ef26e6b7a75ba4672ddc8cbe7bf845c0c /include | |
parent | 6e3f05f5cebe230bb95f01b5afcc3c8e94106402 (diff) | |
download | external_llvm-95267a1e671efc3c14e916b6978bbb15973b4cdc.zip external_llvm-95267a1e671efc3c14e916b6978bbb15973b4cdc.tar.gz external_llvm-95267a1e671efc3c14e916b6978bbb15973b4cdc.tar.bz2 |
Add initial support for selecting constant materializations that require constant
pool loads on X86 in fast isel. This isn't actually used yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55814 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/FastISel.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/FastISel.h b/include/llvm/CodeGen/FastISel.h index 71c80d5..9df3aa9 100644 --- a/include/llvm/CodeGen/FastISel.h +++ b/include/llvm/CodeGen/FastISel.h @@ -22,6 +22,7 @@ namespace llvm { class ConstantFP; class MachineBasicBlock; +class MachineConstantPool; class MachineFunction; class MachineRegisterInfo; class TargetData; @@ -215,9 +216,14 @@ protected: /// from a specified index of a superregister. unsigned FastEmitInst_extractsubreg(unsigned Op0, uint32_t Idx); - void UpdateValueMap(Instruction* I, unsigned Reg); + void UpdateValueMap(Value* I, unsigned Reg); unsigned createResultReg(const TargetRegisterClass *RC); + + virtual unsigned TargetSelectConstantPoolLoad(Constant* C, + MachineConstantPool* MCP) { + return 0; + } private: bool SelectBinaryOp(Instruction *I, ISD::NodeType ISDOpcode); |