Home
last modified time | relevance | path

Searched refs:IdxOp (Results 1 – 7 of 7) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp325 Value *IdxOp = IEI->getOperand(2); in collectSingleShuffleElements() local
327 if (!isa<ConstantInt>(IdxOp)) in collectSingleShuffleElements()
329 unsigned InsertedIdx = cast<ConstantInt>(IdxOp)->getZExtValue(); in collectSingleShuffleElements()
472 Value *IdxOp = IEI->getOperand(2); in collectShuffleElements() local
475 if (isa<ConstantInt>(EI->getOperand(1)) && isa<ConstantInt>(IdxOp)) { in collectShuffleElements()
478 unsigned InsertedIdx = cast<ConstantInt>(IdxOp)->getZExtValue(); in collectShuffleElements()
572 Value *IdxOp = IE.getOperand(2); in visitInsertElementInst() local
575 if (isa<UndefValue>(ScalarOp) || isa<UndefValue>(IdxOp)) in visitInsertElementInst()
581 if (isa<ConstantInt>(EI->getOperand(1)) && isa<ConstantInt>(IdxOp)) { in visitInsertElementInst()
587 unsigned InsertedIdx = cast<ConstantInt>(IdxOp)->getZExtValue(); in visitInsertElementInst()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp498 Value *IdxOp = IEI->getOperand(2); in collectSingleShuffleElements() local
500 if (!isa<ConstantInt>(IdxOp)) in collectSingleShuffleElements()
502 unsigned InsertedIdx = cast<ConstantInt>(IdxOp)->getZExtValue(); in collectSingleShuffleElements()
648 Value *IdxOp = IEI->getOperand(2); in collectShuffleElements() local
651 if (isa<ConstantInt>(EI->getOperand(1)) && isa<ConstantInt>(IdxOp)) { in collectShuffleElements()
654 unsigned InsertedIdx = cast<ConstantInt>(IdxOp)->getZExtValue(); in collectShuffleElements()
1345 Value *IdxOp = IE.getOperand(2); in visitInsertElementInst() local
1348 VecOp, ScalarOp, IdxOp, SQ.getWithInstruction(&IE))) in visitInsertElementInst()
1364 Value *NewInsElt = Builder.CreateInsertElement(NewUndef, ScalarSrc, IdxOp); in visitInsertElementInst()
1379 Value *NewInsElt = Builder.CreateInsertElement(VecSrc, ScalarSrc, IdxOp); in visitInsertElementInst()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp473 Value *IdxOp = IEI->getOperand(2); in collectSingleShuffleElements() local
475 if (!isa<ConstantInt>(IdxOp)) in collectSingleShuffleElements()
477 unsigned InsertedIdx = cast<ConstantInt>(IdxOp)->getZExtValue(); in collectSingleShuffleElements()
628 Value *IdxOp = IEI->getOperand(2); in collectShuffleElements() local
631 if (isa<ConstantInt>(EI->getOperand(1)) && isa<ConstantInt>(IdxOp)) { in collectShuffleElements()
634 unsigned InsertedIdx = cast<ConstantInt>(IdxOp)->getZExtValue(); in collectShuffleElements()
1029 Value *IdxOp = IE.getOperand(2); in visitInsertElementInst() local
1032 VecOp, ScalarOp, IdxOp, SQ.getWithInstruction(&IE))) in visitInsertElementInst()
1045 Value *NewInsElt = Builder.CreateInsertElement(VecSrc, ScalarSrc, IdxOp); in visitInsertElementInst()
1053 if (match(IdxOp, m_ConstantInt(InsertedIdx)) && in visitInsertElementInst()
/external/llvm-project/llvm/test/Transforms/InstCombine/
Dvscale_insertelement.ll6 ; inselt (bitcast VecSrc), (bitcast ScalarSrc), IdxOp
7 ; --> bitcast (inselt VecSrc, ScalarSrc, IdxOp)
/external/llvm-project/llvm/lib/CodeGen/
DMachineVerifier.cpp1328 const auto &IdxOp = MI->getOperand(2); in verifyPreISelGenericInstruction() local
1329 if (!IdxOp.isReg() || MRI->getType(IdxOp.getReg()).isPointer()) in verifyPreISelGenericInstruction()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DMachineVerifier.cpp1339 const auto &IdxOp = MI->getOperand(2); in verifyPreISelGenericInstruction() local
1340 if (!IdxOp.isReg() || MRI->getType(IdxOp.getReg()).isPointer()) in verifyPreISelGenericInstruction()
/external/llvm-project/llvm/lib/Analysis/
DValueTracking.cpp4765 unsigned IdxOp = Op->getOpcode() == Instruction::InsertElement ? 2 : 1; in canCreateUndefOrPoison() local
4766 auto *Idx = dyn_cast<ConstantInt>(Op->getOperand(IdxOp)); in canCreateUndefOrPoison()