For PR950: Implement a stub for folding ICmp and FCmp instructions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32169 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2006-12-04 05:19:34 +00:00
parent 81dfeb3264
commit 2f8bbf5d65
3 changed files with 11 additions and 0 deletions

View File

@ -1600,6 +1600,13 @@ Constant *llvm::ConstantFoldBinaryInstruction(unsigned Opcode,
return 0;
}
Constant *llvm::ConstantFoldCompare(
unsigned opcode, Constant *C1, Constant *C2, unsigned short predicate)
{
// Place holder for future folding of ICmp and FCmp instructions
return 0;
}
Constant *llvm::ConstantFoldGetElementPtr(const Constant *C,
const std::vector<Value*> &IdxList) {
if (IdxList.size() == 0 ||

View File

@ -45,6 +45,8 @@ namespace llvm {
const Constant *Mask);
Constant *ConstantFoldBinaryInstruction(unsigned Opcode, const Constant *V1,
const Constant *V2);
Constant *ConstantFoldCompare(unsigned opcode, Constant *C1, Constant *C2,
unsigned short predicate);
Constant *ConstantFoldGetElementPtr(const Constant *C,
const std::vector<Value*> &IdxList);
} // End llvm namespace

View File

@ -45,6 +45,8 @@ namespace llvm {
const Constant *Mask);
Constant *ConstantFoldBinaryInstruction(unsigned Opcode, const Constant *V1,
const Constant *V2);
Constant *ConstantFoldCompare(unsigned opcode, Constant *C1, Constant *C2,
unsigned short predicate);
Constant *ConstantFoldGetElementPtr(const Constant *C,
const std::vector<Value*> &IdxList);
} // End llvm namespace