mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 20:26:07 +00:00
Added support for the extractelement operation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25181 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -102,6 +102,8 @@ Constant *llvm::ConstantFoldInstruction(Instruction *I) {
|
||||
if (Constant *Op2 = dyn_cast<Constant>(I->getOperand(2)))
|
||||
return ConstantExpr::getSelect(Op0, Op1, Op2);
|
||||
return 0;
|
||||
case Instruction::ExtractElement:
|
||||
return ConstantExpr::getExtractElement(Op0, Op1);
|
||||
case Instruction::GetElementPtr:
|
||||
std::vector<Constant*> IdxList;
|
||||
IdxList.reserve(I->getNumOperands()-1);
|
||||
|
Reference in New Issue
Block a user