/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | ConstantFold.cpp | 44 static Constant *BitCastConstantVector(ConstantVector *CV, in BitCastConstantVector() 70 return ConstantVector::get(Result); in BitCastConstantVector() 144 if (ConstantVector *CV = dyn_cast<ConstantVector>(V)) in FoldBitCast() 152 return ConstantExpr::getBitCast(ConstantVector::get(V), DestPTy); in FoldBitCast() 551 if (ConstantVector *CV = dyn_cast<ConstantVector>(V)) in ConstantFoldCastInstruction() 561 return ConstantVector::get(res); in ConstantFoldCastInstruction() 699 if (ConstantVector* CondV = dyn_cast<ConstantVector>(Cond)) { in ConstantFoldSelectInstruction() 704 ConstantVector *CP1 = dyn_cast<ConstantVector>(V1); in ConstantFoldSelectInstruction() 705 ConstantVector *CP2 = dyn_cast<ConstantVector>(V2); in ConstantFoldSelectInstruction() 727 if (Valid) return ConstantVector::get(Res); in ConstantFoldSelectInstruction() [all …]
|
D | Constants.cpp | 75 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isAllOnesValue() 125 C = ConstantVector::get(std::vector<Constant *>(VTy->getNumElements(), C)); in getIntegerValue() 145 return cast<ConstantVector>(ConstantVector::get(Elts)); in getAllOnesValue() 281 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) { in getVectorElements() 390 return ConstantVector::get(Splat); in getTrue() 403 return ConstantVector::get(Splat); in getFalse() 427 return ConstantVector::get(SmallVector<Constant*, in get() 453 return ConstantVector::get( in get() 496 return ConstantVector::get( in get() 511 return ConstantVector::get( in get() [all …]
|
D | LLVMContextImpl.h | 152 VectorType, ConstantVector> VectorConstantsTy;
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 23 if (ConstantVector *C = dyn_cast<ConstantVector>(V)) { in CheapToScalarize() 66 const ConstantVector *CP = cast<ConstantVector>(SVI->getOperand(2)); in getShuffleMask() 89 if (ConstantVector *CP = dyn_cast<ConstantVector>(V)) in FindScalarElement() 132 if (ConstantVector *C = dyn_cast<ConstantVector>(EI.getOperand(0))) { in visitExtractElementInst() 429 return new ShuffleVectorInst(LHS, RHS, ConstantVector::get(Mask)); in visitInsertElementInst() 500 SVI.setOperand(2, ConstantVector::get(Elts)); in visitShuffleVectorInst() 568 ConstantVector::get(Elts)); in visitShuffleVectorInst()
|
D | InstCombineMulDivRem.cpp | 267 if (ConstantVector *Op1V = dyn_cast<ConstantVector>(Op1C)) { in visitFMul() 687 if (ConstantVector *RHSV = dyn_cast<ConstantVector>(Op1)) { in visitSRem() 707 Constant *NewRHSV = ConstantVector::get(Elts); in visitSRem()
|
D | InstCombineSimplifyDemanded.cpp | 825 if (ConstantVector *CV = dyn_cast<ConstantVector>(V)) { in SimplifyDemandedVectorElts() 842 Constant *NewCP = ConstantVector::get(Elts); in SimplifyDemandedVectorElts() 864 return ConstantVector::get(Elts); in SimplifyDemandedVectorElts() 988 I->setOperand(2, ConstantVector::get(Elts)); in SimplifyDemandedVectorElts()
|
/external/swiftshader/third_party/LLVM/include/llvm/ |
D | Constants.h | 459 class ConstantVector : public Constant { 460 friend struct ConstantCreator<ConstantVector, VectorType, 462 ConstantVector(const ConstantVector &); // DO NOT IMPLEMENT 464 ConstantVector(VectorType *T, ArrayRef<Constant *> Val); 493 static inline bool classof(const ConstantVector *) { return true; } 500 struct OperandTraits<ConstantVector> : 501 public VariadicOperandTraits<ConstantVector> { 504 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ConstantVector, Constant)
|
/external/llvm/lib/IR/ |
D | Constants.cpp | 55 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isNegativeZeroValue() 81 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isZeroValue() 115 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isAllOnesValue() 137 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isOneValue() 159 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isMinSignedValue() 181 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isNotMinSignedValue() 244 C = ConstantVector::getSplat(VTy->getNumElements(), C); in getIntegerValue() 261 return ConstantVector::getSplat(VTy->getNumElements(), in getAllOnesValue() 530 return ConstantVector::getSplat(VTy->getNumElements(), in getTrue() 542 return ConstantVector::getSplat(VTy->getNumElements(), in getFalse() [all …]
|
D | ConstantFold.cpp | 67 return ConstantVector::get(Result); in BitCastConstantVector() 156 return ConstantExpr::getBitCast(ConstantVector::get(V), DestPTy); in FoldBitCast() 566 if ((isa<ConstantVector>(V) || isa<ConstantDataVector>(V)) && in ConstantFoldCastInstruction() 578 return ConstantVector::get(res); in ConstantFoldCastInstruction() 732 if (ConstantVector *CondV = dyn_cast<ConstantVector>(Cond)) { in ConstantFoldSelectInstruction() 755 return ConstantVector::get(Result); in ConstantFoldSelectInstruction() 826 return ConstantVector::get(Result); in ConstantFoldInsertElementInstruction() 867 return ConstantVector::get(Result); in ConstantFoldShuffleVectorInstruction() 912 return ConstantVector::get(Result); in ConstantFoldInsertValueInstruction() 1220 return ConstantVector::get(Result); in ConstantFoldBinaryInstruction() [all …]
|
/external/llvm/include/llvm/IR/ |
D | Value.def | 71 HANDLE_CONSTANT(ConstantVector) 95 HANDLE_CONSTANT_MARKER(ConstantAggregateLastVal, ConstantVector)
|
D | Constants.h | 470 class ConstantVector final : public ConstantAggregate { 471 friend struct ConstantAggrKeyType<ConstantVector>; 476 ConstantVector(VectorType *T, ArrayRef<Constant *> Val);
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | ConstantFolding.cpp | 63 return FoldBitCast(ConstantVector::get(Ops), DestTy, TD); in FoldBitCast() 67 ConstantVector *CV = dyn_cast<ConstantVector>(C); in FoldBitCast() 111 CV = dyn_cast<ConstantVector>(C); in FoldBitCast() 176 return ConstantVector::get(Result); in FoldBitCast() 331 if (ConstantVector *CV = dyn_cast<ConstantVector>(C)) { in ReadDataFromGlobal() 1020 if (ConstantVector *CP = dyn_cast<ConstantVector>(C)) in ConstantFoldLoadThroughGEPConstantExpr() 1303 if (ConstantVector *Op = dyn_cast<ConstantVector>(Operands[0])) { in ConstantFoldCall()
|
/external/mesa3d/src/gallium/drivers/radeon/ |
D | AMDILPeepholeOptimizer.cpp | 755 ConstantVector *AndMaskVec = dyn_cast<ConstantVector>(AndMask); in optimizeBitExtract() 756 ConstantVector *ShrValVec = dyn_cast<ConstantVector>(ShrVal); in optimizeBitExtract() 786 newMaskConst = ConstantVector::get(maskVals); in optimizeBitExtract() 787 shiftValConst = ConstantVector::get(shiftVals); in optimizeBitExtract() 861 negOneConst = ConstantVector::get(negOneVals); in expandBFI() 903 newMaskConst = ConstantVector::get(newMaskVals); in expandBFM() 904 newShiftConst = ConstantVector::get(newShiftVals); in expandBFM()
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | PatternMatch.h | 100 if (ConstantVector *CV = dyn_cast<ConstantVector>(V)) in match() 146 if (const ConstantVector *CV = dyn_cast<ConstantVector>(V)) in match() 166 if (const ConstantVector *CV = dyn_cast<ConstantVector>(V)) in match() 600 if (ConstantVector *CV = dyn_cast<ConstantVector>(RHS)) in matchIfNot()
|
/external/swiftshader/third_party/LLVM/ |
D | OnlyX86.patch | 129 - if (ConstantVector *Mask = dyn_cast<ConstantVector>(II->getArgOperand(2))) { 176 + // if (ConstantVector *Mask = dyn_cast<ConstantVector>(II->getArgOperand(2))) {
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | ValueMapper.cpp | 146 if (isa<ConstantVector>(C)) in MapValue() 147 return VM[V] = ConstantVector::get(Ops); in MapValue()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | MachineFunction.cpp | 671 if (const ConstantVector *AV = dyn_cast<ConstantVector>(A)) in CanShareConstantPoolEntry() 672 if (const ConstantVector *BV = dyn_cast<ConstantVector>(B)) { in CanShareConstantPoolEntry()
|
/external/llvm/tools/llvm-stress/ |
D | llvm-stress.cpp | 210 return ConstantVector::get(VectorValue); in getRandomValue() 377 return PT->push_back(ConstantVector::getAllOnesValue(Ty)); in Act() 379 return PT->push_back(ConstantVector::getNullValue(Ty)); in Act() 457 Constant *Mask = ConstantVector::get(Idxs); in Act()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 417 ConstantVector::get(ExtendMask)); in replaceExtractElements() 613 ConstantVector::get(Mask)); in visitInsertElementInst() 808 ConstantVector::get(MaskValues)); in EvaluateInDifferentElementOrder() 974 SVI.setOperand(2, ConstantVector::get(Elts)); in visitShuffleVectorInst() 1061 ConstantVector::get(ShuffleMask), in visitShuffleVectorInst() 1263 return new ShuffleVectorInst(newLHS, newRHS, ConstantVector::get(Elts)); in visitShuffleVectorInst()
|
D | InstCombineShifts.cpp | 329 else if (ConstantVector *CV = dyn_cast<ConstantVector>(Op1)) in FoldShiftByConstant() 440 Mask = ConstantVector::getSplat(VT->getNumElements(), Mask); in FoldShiftByConstant() 476 Mask = ConstantVector::getSplat(VT->getNumElements(), Mask); in FoldShiftByConstant()
|
D | InstCombineCalls.cpp | 78 return ConstantVector::get(BoolVec); in getNegativeIsTrueBoolVec() 413 return ConstantVector::get(ConstantVec); in simplifyX86varShift() 428 auto ShiftVec = ConstantVector::get(ShiftVecAmts); in simplifyX86varShift() 544 return ConstantVector::get(Args); in simplifyX86extrq() 600 ConstantAggregateZero::get(ShufTy), ConstantVector::get(ShuffleMask)); in simplifyX86extrq() 681 ConstantVector::get(ShuffleMask)); in simplifyX86insertq() 706 return ConstantVector::get(Args); in simplifyX86insertq() 766 auto ShuffleMask = ConstantVector::get(makeArrayRef(Indexes, NumElts)); in simplifyX86pshufb() 818 auto ShuffleMask = ConstantVector::get(makeArrayRef(Indexes, NumElts)); in simplifyX86vpermilvar() 854 auto ShuffleMask = ConstantVector::get(makeArrayRef(Indexes, Size)); in simplifyX86vpermv()
|
D | InstCombineSimplifyDemanded.cpp | 956 Constant *NewCV = ConstantVector::get(Elts); in SimplifyDemandedVectorElts() 1081 I->setOperand(2, ConstantVector::get(Elts)); in SimplifyDemandedVectorElts() 1088 if (ConstantVector* CV = dyn_cast<ConstantVector>(I->getOperand(0))) { in SimplifyDemandedVectorElts()
|
/external/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 113 return FoldBitCast(ConstantVector::get(Ops), DestTy, DL); in FoldBitCast() 117 if (!isa<ConstantDataVector>(C) && !isa<ConstantVector>(C)) in FoldBitCast() 160 if (!isa<ConstantVector>(C) && // FIXME: Remove ConstantVector. in FoldBitCast() 200 return ConstantVector::get(Result); in FoldBitCast() 235 return ConstantVector::get(Result); in FoldBitCast() 367 if (isa<ConstantArray>(C) || isa<ConstantVector>(C) || in ReadDataFromGlobal() 1669 if (isa<ConstantVector>(Operands[0]) || in ConstantFoldScalarCall() 1889 return ConstantVector::get(NewElements); in ConstantFoldVectorCall() 1909 return ConstantVector::get(Result); in ConstantFoldVectorCall()
|
/external/llvm/lib/Transforms/Vectorize/ |
D | BBVectorize.cpp | 1077 if ((isa<ConstantVector>(IOp) || isa<ConstantDataVector>(IOp)) && in areInstsCompatible() 1078 (isa<ConstantVector>(JOp) || isa<ConstantDataVector>(JOp))) { in areInstsCompatible() 2405 return ConstantVector::get(Mask); in getReplacementShuffleMask() 2612 ConstantVector::get(Mask), in getReplacementInput() 2635 ConstantVector::get(Mask), in getReplacementInput() 2651 ConstantVector::get(Mask), in getReplacementInput() 2671 new ShuffleVectorInst(I1, I2, ConstantVector::get(Mask), in getReplacementInput() 2705 ConstantVector::get(Mask), in getReplacementInput() 2742 ConstantVector::get(Mask), in getReplacementInput() 2769 ConstantVector::get(Mask), in getReplacementInput() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/ |
D | AsmPrinter.h | 30 class ConstantVector; variable
|