/openbsd/gnu/llvm/llvm/lib/IR/ |
H A D | MDBuilder.cpp | 50 Vals[i + 1] = createConstant(ConstantInt::get(Int32Ty, Weights[i])); in createBranchWeights() 68 Ops.push_back(createConstant(ConstantInt::get(Int64Ty, Count))); in createFunctionEntryCount() 73 Ops.push_back(createConstant(ConstantInt::get(Int64Ty, ID))); in createFunctionEntryCount() 88 return createRange(ConstantInt::get(Ty, Lo), ConstantInt::get(Ty, Hi)); in createRange() 113 Ops.push_back(createConstant(ConstantInt::get(Int64, CalleeArgNo))); in createCallbackEncoding() 255 ConstantInt *Off = ConstantInt::get(Type::getInt64Ty(Context), Offset); in createTBAAScalarTypeNode() 265 ConstantInt *Off = ConstantInt::get(Int64, Offset); in createTBAAStructTagNode() 279 Ops[1] = createConstant(ConstantInt::get(Int64, Size)); in createTBAATypeNode() 294 auto *SizeNode = createConstant(ConstantInt::get(Int64, Size)); in createTBAAAccessTag() 342 Ops[0] = createConstant(ConstantInt::get(Int64Ty, GUID)); in createPseudoProbeDesc() [all …]
|
H A D | ConstantFold.cpp | 166 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in FoldBitCast() 224 if (ConstantInt *CI = dyn_cast<ConstantInt>(C)) { in ExtractConstantBytes() 245 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS)) in ExtractConstantBytes() 471 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in ConstantFoldCastInstruction() 481 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in ConstantFoldCastInstruction() 488 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in ConstantFoldCastInstruction() 499 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in ConstantFoldCastInstruction() 685 ConstantInt *CIdx = dyn_cast<ConstantInt>(Idx); in ConstantFoldInsertElementInstruction() 1008 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() 1128 if (ConstantInt *CI1 = dyn_cast<ConstantInt>(C1)) { in ConstantFoldBinaryInstruction() [all …]
|
/openbsd/gnu/llvm/llvm/lib/CodeGen/ |
H A D | IntrinsicLowering.cpp | 111 ConstantInt::get(V->getType(), in LowerBSWAP() 115 ConstantInt::get(V->getType(), in LowerBSWAP() 119 ConstantInt::get(V->getType(), in LowerBSWAP() 123 ConstantInt::get(V->getType(), in LowerBSWAP() 127 ConstantInt::get(V->getType(), in LowerBSWAP() 131 ConstantInt::get(V->getType(), in LowerBSWAP() 161 Value *Count = ConstantInt::get(V->getType(), 0); in LowerCTPOP() 193 Value *ShVal = ConstantInt::get(V->getType(), i); in LowerCTLZ() 263 Value *SrcM1 = ConstantInt::get(Src->getType(), 1); in LowerIntrinsicCall() 287 CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 0)); in LowerIntrinsicCall() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/ |
H A D | StraightLineStrengthReduce.cpp | 153 ConstantInt *Index = nullptr; 315 ConstantInt *ConstIdx = dyn_cast<ConstantInt>(Idx); in hasOnlyOneNonZeroIndex() 413 ConstantInt *Idx = nullptr; in allocateCandidatesAndFindBasisForAdd() 424 ConstantInt *One = ConstantInt::get(cast<IntegerType>(I->getType()), 1); in allocateCandidatesAndFindBasisForAdd() 445 ConstantInt *Idx = nullptr; in allocateCandidatesAndFindBasisForMul() 458 ConstantInt *Zero = ConstantInt::get(cast<IntegerType>(I->getType()), 0); in allocateCandidatesAndFindBasisForMul() 488 ConstantInt *ScaledIdx = ConstantInt::get( in allocateCandidatesAndFindBasisForGEP() 502 ConstantInt *RHS = nullptr; in factorArrayIndex() 522 ConstantInt *PowerOf2 = in factorArrayIndex() 619 ConstantInt *Exponent = ConstantInt::get(DeltaType, IndexOffset.logBase2()); in emitBump() [all …]
|
H A D | LowerExpectIntrinsic.cpp | 90 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect() 124 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(Expect->getArgOperand(1)); in handlePhiDef() 169 ConstantInt *CInt = dyn_cast<ConstantInt>(BinOp->getOperand(1)); in handlePhiDef() 183 Result ^= cast<ConstantInt>(Op->getOperand(1))->getValue(); in handlePhiDef() 222 ConstantInt *CI = dyn_cast<ConstantInt>(PhiOpnd); in handlePhiDef() 295 ConstantInt *CmpConstOperand = nullptr; in handleBrSelExpect() 304 CmpConstOperand = dyn_cast<ConstantInt>(CmpI->getOperand(1)); in handleBrSelExpect() 326 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleBrSelExpect()
|
H A D | SeparateConstOffsetFromGEP.cpp | 544 if (ConstantInt *ConstLHS = dyn_cast<ConstantInt>(LHS)) { in CanTraceInto() 548 if (ConstantInt *ConstRHS = dyn_cast<ConstantInt>(RHS)) { in CanTraceInto() 614 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in find() 683 assert(isa<ConstantInt>(U)); in distributeExtsAndCloneChain() 717 assert(isa<ConstantInt>(UserChain[ChainIndex])); in removeConstOffset() 734 if (ConstantInt *CI = dyn_cast<ConstantInt>(NextInChain)) { in removeConstOffset() 874 if (ConstantInt *CI = dyn_cast<ConstantInt>(Idx)) in lowerToSingleIndexGEPs() 935 if (ConstantInt *CI = dyn_cast<ConstantInt>(Idx)) in lowerToArithmetics() 1329 isa<ConstantInt>(FirstOffsetDef->getOperand(1))) in isLegalToSwapOperand() 1338 (isa<ConstantInt>(BO->getOperand(0)) || in isLegalToSwapOperand() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Target/NVPTX/ |
H A D | NVPTXImageOptimizer.cpp | 45 void replaceWith(Instruction *From, ConstantInt *To); 96 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePSampler() 100 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePSampler() 113 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePSurface() 119 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePSurface() 131 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePTexture() 138 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePTexture() 146 void NVPTXImageOptimizer::replaceWith(Instruction *From, ConstantInt *To) { in replaceWith()
|
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUInstCombineIntrinsic.cpp | 82 if (ConstantInt *ConstInt = dyn_cast<ConstantInt>(&V)) { in canSafelyConvertTo16Bit() 425 const ConstantInt *CMask = dyn_cast<ConstantInt>(Src1); in instCombineIntrinsic() 557 ConstantInt *CWidth = dyn_cast<ConstantInt>(II.getArgOperand(2)); in instCombineIntrinsic() 572 ConstantInt *COffset = dyn_cast<ConstantInt>(II.getArgOperand(1)); in instCombineIntrinsic() 611 ConstantInt *En = cast<ConstantInt>(II.getArgOperand(1)); in instCombineIntrinsic() 702 const ConstantInt *CC = cast<ConstantInt>(II.getArgOperand(2)); in instCombineIntrinsic() 874 const ConstantInt *C = dyn_cast<ConstantInt>(II.getArgOperand(0)); in instCombineIntrinsic() 884 auto *BC = cast<ConstantInt>(II.getArgOperand(5)); in instCombineIntrinsic() 901 ConstantInt *FetchInvalid = cast<ConstantInt>(II.getArgOperand(4)); in instCombineIntrinsic() 902 ConstantInt *BoundCtrl = cast<ConstantInt>(II.getArgOperand(5)); in instCombineIntrinsic() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Analysis/ |
H A D | MemoryLocation.cpp | 182 if (ConstantInt *LenCI = dyn_cast<ConstantInt>(II->getArgOperand(2))) in getForArgument() 194 cast<ConstantInt>(II->getArgOperand(0))->getZExtValue()), in getForArgument() 221 cast<ConstantInt>(II->getArgOperand(1))->getZExtValue()), in getForArgument() 298 if (const ConstantInt *LenCI = in getForArgument() 299 dyn_cast<ConstantInt>(Call->getArgOperand(2))) in getForArgument() 307 if (const ConstantInt *LenCI = in getForArgument() 308 dyn_cast<ConstantInt>(Call->getArgOperand(2))) in getForArgument() 314 if (const ConstantInt *LenCI = in getForArgument() 315 dyn_cast<ConstantInt>(Call->getArgOperand(2))) in getForArgument() 323 if (const ConstantInt *LenCI = in getForArgument() [all …]
|
H A D | TypeBasedAliasAnalysis.cpp | 183 ConstantInt *CI = mdconst::dyn_extract<ConstantInt>(Node->getOperand(2)); in isTypeImmutable() 247 ConstantInt *CI = mdconst::dyn_extract<ConstantInt>(Node->getOperand(OpNo)); in isTypeImmutable() 342 mdconst::extract<ConstantInt>(Operands[Idx + 1])->getZExtValue(); in getField() 546 auto *OffsetNode = ConstantAsMetadata::get(ConstantInt::get(Int64, 0)); in createAccessTag() 553 ConstantAsMetadata::get(ConstantInt::get(Int64, AccessSize)); in createAccessTag() 764 ConstantInt *InnerOffset = mdconst::extract<ConstantInt>(MD->getOperand(i)); in shiftTBAAStruct() 765 ConstantInt *InnerSize = in shiftTBAAStruct() 766 mdconst::extract<ConstantInt>(MD->getOperand(i + 1)); in shiftTBAAStruct() 780 ConstantInt::get(InnerOffset->getType(), NewOffset))); in shiftTBAAStruct() 782 ConstantInt::get(InnerSize->getType(), NewSize))); in shiftTBAAStruct() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCompares.cpp | 109 ConstantInt *AndCst) { in foldCmpLoadFromIndexedGlobal() 141 ConstantInt *Idx = dyn_cast<ConstantInt>(GEP->getOperand(i)); in foldCmpLoadFromIndexedGlobal() 589 if (isa<ConstantInt>(Op) && cast<ConstantInt>(Op)->isZero()) in rewriteGEPAsOffset() 4692 ConstantInt *Cst1; in foldICmpEquality() 5144 if (ConstantInt *CI = dyn_cast<ConstantInt>(BO->getOperand(1))) { in processUMulZExtIdiom() 5167 ConstantInt *CI; in processUMulZExtIdiom() 5185 if (ConstantInt *CI = dyn_cast<ConstantInt>(OtherVal)) { in processUMulZExtIdiom() 5197 if (ConstantInt *CI = dyn_cast<ConstantInt>(OtherVal)) { in processUMulZExtIdiom() 5208 if (ConstantInt *CI = dyn_cast<ConstantInt>(OtherVal)) { in processUMulZExtIdiom() 5220 if (ConstantInt *CI = dyn_cast<ConstantInt>(OtherVal)) { in processUMulZExtIdiom() [all …]
|
H A D | InstCombineShifts.cpp | 595 InnerShift->setOperand(1, ConstantInt::get(ShType, ShAmt)); in foldShiftedShift() 743 Constant *NegDivC = ConstantInt::get(Ty, -(*DivC)); in FoldShiftByConstant() 1067 Constant *Mask = ConstantInt::get(Ty, Bits); in visitShl() 1086 Constant *NewLHS = ConstantInt::get(Ty, C1->shl(*C)); in visitShl() 1110 Constant *AllOnes = ConstantInt::getAllOnesValue(Ty); in visitShl() 1134 ConstantInt::get(Ty, APInt::getSignMask(BitWidth)), X); in visitShl() 1182 Constant *RHS = ConstantInt::getSigned(Ty, IsPop ? -1 : 0); in visitLShr() 1239 Constant *Mask = ConstantInt::get(Ty, Bits); in visitLShr() 1256 auto *NewC = ConstantInt::get( in visitLShr() 1399 Constant *AllOnes = ConstantInt::getAllOnesValue(Ty); in visitLShr() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/ |
H A D | LowerMemIntrinsics.cpp | 22 ConstantInt *CopyLen, Align SrcAlign, Align DstAlign, bool SrcIsVolatile, in createMemCpyLoopKnownSize() 108 Constant *LoopEndCI = ConstantInt::get(TypeOfCopyLen, LoopEndCount); in createMemCpyLoopKnownSize() 143 OpTy, CastedSrc, ConstantInt::get(TypeOfCopyLen, GepIndex)); in createMemCpyLoopKnownSize() 157 OpTy, CastedDst, ConstantInt::get(TypeOfCopyLen, GepIndex)); in createMemCpyLoopKnownSize() 222 ConstantInt *CILoopOpSize = ConstantInt::get(ILengthType, LoopOpSize); in createMemCpyLoopUnknownSize() 285 ConstantInt *Zero = ConstantInt::get(ILengthType, 0U); in createMemCpyLoopUnknownSize() 332 ResidualIndex, ConstantInt::get(CopyLenType, ResLoopOpSize)); in createMemCpyLoopUnknownSize() 344 ConstantInt *Zero = ConstantInt::get(ILengthType, 0U); in createMemCpyLoopUnknownSize() 433 LoopPhi, ConstantInt::get(TypeOfCopyLen, 1), "index_ptr"); in createMemMoveLoop() 528 if (ConstantInt *CI = dyn_cast<ConstantInt>(Memcpy->getLength())) { in expandMemCpyAsLoop() [all …]
|
H A D | LowerSwitch.cpp | 74 ConstantInt *Low; 75 ConstantInt *High; 78 CaseRange(ConstantInt *low, ConstantInt *high, BasicBlock *bb) in CaseRange() 89 const ConstantInt *CI1 = cast<const ConstantInt>(C1.Low); in operator ()() 90 const ConstantInt *CI2 = cast<const ConstantInt>(C2.High); in operator ()() 265 ConstantInt *NewLowerBound = Pivot.Low; in SwitchConvert() 269 ConstantInt *NewUpperBound = ConstantInt::get(NewLowerBound->getContext(), in SwitchConvert() 390 ConstantInt *LowerBound = nullptr; in ProcessSwitchInst() 391 ConstantInt *UpperBound = nullptr; in ProcessSwitchInst() 427 LowerBound = ConstantInt::get(SI->getContext(), Min); in ProcessSwitchInst() [all …]
|
H A D | SimplifyLibCalls.cpp | 264 if (ConstantInt *LenC = dyn_cast<ConstantInt>(Size)) { in annotateNonNullAndDereferenceable() 360 ConstantInt *LengthArg = dyn_cast<ConstantInt>(Size); in optimizeStrNCat() 427 ConstantInt *CharC = dyn_cast<ConstantInt>(CharVal); in optimizeStrChr() 482 ConstantInt *CharC = dyn_cast<ConstantInt>(CharVal); in optimizeStrRChr() 579 if (ConstantInt *LengthArg = dyn_cast<ConstantInt>(Size)) in optimizeStrNCmp() 720 if (ConstantInt *SizeC = dyn_cast<ConstantInt>(Size)) in optimizeStrLCpy() 805 if (ConstantInt *SizeC = dyn_cast<ConstantInt>(Size)) in optimizeStringNCpy() 1169 ConstantInt *LenC = dyn_cast<ConstantInt>(Size); in optimizeMemRChr() 1263 ConstantInt *CharC = dyn_cast<ConstantInt>(CharVal); in optimizeMemChr() 1264 ConstantInt *LenC = dyn_cast<ConstantInt>(Size); in optimizeMemChr() [all …]
|
/openbsd/gnu/llvm/clang/tools/clang-linker-wrapper/ |
H A D | OffloadWrapper.cpp | 176 auto *Zero = ConstantInt::get(getSizeTTy(M), 0u); in createBinDesc() 191 auto *Size = ConstantInt::get(getSizeTTy(M), Buf.size()); in createBinDesc() 316 ConstantInt::get(Type::getInt32Ty(C), 1), in createFatbinDesc() 433 {ConstantInt::get(getSizeTTy(M), 0), in createRegisterGlobalsFunction() 438 {ConstantInt::get(getSizeTTy(M), 0), in createRegisterGlobalsFunction() 443 {ConstantInt::get(getSizeTTy(M), 0), in createRegisterGlobalsFunction() 448 {ConstantInt::get(getSizeTTy(M), 0), in createRegisterGlobalsFunction() 459 ConstantInt::get(Type::getInt32Ty(C), -1), in createRegisterGlobalsFunction() 495 getEntryTy(M), Entry, ConstantInt::get(getSizeTTy(M), 1)); in createRegisterGlobalsFunction() 500 ArrayRef<Constant *>({ConstantInt::get(getSizeTTy(M), 0), in createRegisterGlobalsFunction() [all …]
|
/openbsd/gnu/llvm/llvm/lib/FuzzMutate/ |
H A D | OpDescriptor.cpp | 18 Cs.push_back(ConstantInt::get(IntTy, APInt::getMaxValue(W))); in makeConstantsWithType() 19 Cs.push_back(ConstantInt::get(IntTy, APInt::getMinValue(W))); in makeConstantsWithType() 20 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMaxValue(W))); in makeConstantsWithType() 21 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMinValue(W))); in makeConstantsWithType() 22 Cs.push_back(ConstantInt::get(IntTy, APInt::getOneBitSet(W, W / 2))); in makeConstantsWithType()
|
/openbsd/gnu/llvm/llvm/lib/Transforms/Instrumentation/ |
H A D | InstrOrderFile.cpp | 127 Value *IdxFlags[] = {ConstantInt::get(Int32Ty, 0), in generateCodeSequence() 128 ConstantInt::get(Int32Ty, FuncId)}; in generateCodeSequence() 131 entryB.CreateStore(ConstantInt::get(Int8Ty, 1), MapAddr); in generateCodeSequence() 133 entryB.CreateICmpEQ(loadBitMap, ConstantInt::get(Int8Ty, 0)); in generateCodeSequence() 138 AtomicRMWInst::Add, BufferIdx, ConstantInt::get(Int32Ty, 1), in generateCodeSequence() 142 IdxVal, ConstantInt::get(Int32Ty, INSTR_ORDER_FILE_BUFFER_MASK)); in generateCodeSequence() 143 Value *BufferGEPIdx[] = {ConstantInt::get(Int32Ty, 0), WrappedIdx}; in generateCodeSequence() 146 updateB.CreateStore(ConstantInt::get(Type::getInt64Ty(Ctx), MD5Hash(F.getName())), in generateCodeSequence()
|
H A D | BoundsChecking.cpp | 72 ConstantInt *SizeCI = dyn_cast<ConstantInt>(Size); in getBoundsCheckCond() 75 Value *NeededSizeVal = ConstantInt::get(IntTy, NeededSize); in getBoundsCheckCond() 90 ? ConstantInt::getFalse(Ptr->getContext()) in getBoundsCheckCond() 95 ? ConstantInt::getFalse(Ptr->getContext()) in getBoundsCheckCond() 100 Value *Cmp1 = IRB.CreateICmpSLT(Offset, ConstantInt::get(IntTy, 0)); in getBoundsCheckCond() 115 ConstantInt *C = dyn_cast_or_null<ConstantInt>(Or); in insertBoundsCheck()
|
/openbsd/gnu/llvm/llvm/lib/Target/RISCV/ |
H A D | RISCVGatherScatterLowering.cpp | 96 MaybeAlign MA = cast<ConstantInt>(AlignOp)->getMaybeAlignValue(); in isLegalTypeAndAlignment() 114 dyn_cast_or_null<ConstantInt>(StartC->getAggregateElement((unsigned)0)); in matchStridedConstant() 118 ConstantInt *Prev = StartVal; in matchStridedConstant() 120 auto *C = dyn_cast_or_null<ConstantInt>(StartC->getAggregateElement(i)); in matchStridedConstant() 133 Value *Stride = ConstantInt::get(StartVal->getType(), StrideVal); in matchStridedConstant() 148 return std::make_pair(ConstantInt::get(Ty, 0), ConstantInt::get(Ty, 1)); in matchStridedStart() 298 if (isa<ConstantInt>(Start) && cast<ConstantInt>(Start)->isZero()) in matchStridedRecurrence() 307 if (!isa<ConstantInt>(Start) || !cast<ConstantInt>(Start)->isZero()) in matchStridedRecurrence() 313 if (isa<ConstantInt>(Stride) && cast<ConstantInt>(Stride)->isOne()) in matchStridedRecurrence() 323 if (!isa<ConstantInt>(Start) || !cast<ConstantInt>(Start)->isZero()) in matchStridedRecurrence() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Transforms/IPO/ |
H A D | GlobalSplit.cpp | 62 !isa<ConstantInt>(GEP->getOperand(1)) || in splitGlobal() 63 !cast<ConstantInt>(GEP->getOperand(1))->isZero() || in splitGlobal() 64 !isa<ConstantInt>(GEP->getOperand(2))) in splitGlobal() 93 uint64_t ByteOffset = cast<ConstantInt>( in splitGlobal() 111 ConstantInt::get(Int32Ty, ByteOffset - SplitBegin)), in splitGlobal() 121 unsigned I = cast<ConstantInt>(GEP->getOperand(2))->getZExtValue(); in splitGlobal() 126 Ops.push_back(ConstantInt::get(Int32Ty, 0)); in splitGlobal()
|
H A D | CrossDSOCFI.cpp | 46 ConstantInt *extractNumericTypeId(MDNode *MD); 61 ConstantInt *CrossDSOCFI::extractNumericTypeId(MDNode *MD) { in extractNumericTypeId() 66 auto C = dyn_cast_or_null<ConstantInt>(TM->getValue()); in extractNumericTypeId() 84 if (ConstantInt *TypeId = extractNumericTypeId(Type)) in buildCFICheck() 93 if (ConstantInt *TypeId = in buildCFICheck() 139 ConstantInt *CaseTypeId = ConstantInt::get(Type::getInt64Ty(Ctx), TypeId); in buildCFICheck()
|
/openbsd/gnu/llvm/llvm/include/llvm/CodeGen/ |
H A D | SwitchLoweringUtils.h | 22 class ConstantInt; variable 44 const ConstantInt *Low, *High; 52 static CaseCluster range(const ConstantInt *Low, const ConstantInt *High, in range() 63 static CaseCluster jumpTable(const ConstantInt *Low, const ConstantInt *High, in jumpTable() 74 static CaseCluster bitTests(const ConstantInt *Low, const ConstantInt *High, in bitTests() 243 const ConstantInt *GE; 244 const ConstantInt *LT;
|
/openbsd/gnu/llvm/llvm/lib/Target/AVR/ |
H A D | AVRShiftExpand.cpp | 57 if (isa<ConstantInt>(I.getOperand(1))) in runOnFunction() 80 Value *Int8Zero = ConstantInt::get(Int8Ty, 0); in expand() 110 Builder.CreateSub(ShiftAmountPHI, ConstantInt::get(Int8Ty, 1)); in expand() 119 ValueShifted = Builder.CreateShl(ValuePHI, ConstantInt::get(Int32Ty, 1)); in expand() 122 ValueShifted = Builder.CreateLShr(ValuePHI, ConstantInt::get(Int32Ty, 1)); in expand() 125 ValueShifted = Builder.CreateAShr(ValuePHI, ConstantInt::get(Int32Ty, 1)); in expand()
|
/openbsd/gnu/llvm/llvm/lib/Target/X86/ |
H A D | X86InstCombineIntrinsic.cpp | 226 Amt = ConstantInt::get(SVT, BitWidth - 1); in simplifyX86immShift() 382 auto *COp = dyn_cast_or_null<ConstantInt>(CElt); in simplifyX86varShift() 409 ConstantVec.push_back(ConstantInt::getNullValue(SVT)); in simplifyX86varShift() 425 ShiftVecAmts.push_back(ConstantInt::get(SVT, Idx)); in simplifyX86varShift() 562 auto *CInt = dyn_cast<ConstantInt>(II.getArgOperand(2)); in simplifyX86insertps() 620 ConstantInt *CILength, ConstantInt *CIIndex, in simplifyX86extrq() 624 Constant *Args[] = {ConstantInt::get(IntTy64, Val), in simplifyX86extrq() 874 APInt Index = cast<ConstantInt>(COp)->getValue(); in simplifyX86vpermilvar() 919 uint32_t Index = cast<ConstantInt>(COp)->getZExtValue(); in simplifyX86vpermv() 1256 auto *C = dyn_cast<ConstantInt>(Mask); in instCombineIntrinsic() [all …]
|