From 9c7216f984111eb8f1716741bc9039ed86ec4a9b Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Fri, 5 Sep 2008 20:49:33 +0000 Subject: [PATCH] Rename method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55853 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/FastISel.h | 6 ++++-- lib/Target/X86/X86FastISel.cpp | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/include/llvm/CodeGen/FastISel.h b/include/llvm/CodeGen/FastISel.h index 95280c9474a..6ac401d2409 100644 --- a/include/llvm/CodeGen/FastISel.h +++ b/include/llvm/CodeGen/FastISel.h @@ -227,8 +227,10 @@ protected: unsigned createResultReg(const TargetRegisterClass *RC); - virtual unsigned TargetSelectConstantPoolLoad(Constant* C, - MachineConstantPool* MCP) { + /// TargetMaterializeConstant - Emit a constant in a register using + /// target-specific logic, such as constant pool loads. + virtual unsigned TargetMaterializeConstant(Constant* C, + MachineConstantPool* MCP) { return 0; } diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp index 37640bb4780..e63120d40e4 100644 --- a/lib/Target/X86/X86FastISel.cpp +++ b/lib/Target/X86/X86FastISel.cpp @@ -61,7 +61,7 @@ private: bool X86SelectSelect(Instruction *I); - unsigned TargetSelectConstantPoolLoad(Constant *C, MachineConstantPool* MCP); + unsigned TargetMaterializeConstant(Constant *C, MachineConstantPool* MCP); }; /// X86SelectConstAddr - Select and emit code to materialize constant address. @@ -549,8 +549,8 @@ X86FastISel::TargetSelectInstruction(Instruction *I) { return false; } -unsigned X86FastISel::TargetSelectConstantPoolLoad(Constant *C, - MachineConstantPool* MCP) { +unsigned X86FastISel::TargetMaterializeConstant(Constant *C, + MachineConstantPool* MCP) { unsigned CPLoad = getRegForValue(C); if (CPLoad != 0) return CPLoad;