mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-26 06:14:42 +00:00
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:
parent
81dfeb3264
commit
2f8bbf5d65
@ -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 ||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user