| /freebsd-13.1/contrib/llvm-project/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() 226 ConstantInt *Off = ConstantInt::get(Type::getInt64Ty(Context), Offset); in createTBAAScalarTypeNode() 236 ConstantInt *Off = ConstantInt::get(Int64, Offset); in createTBAAStructTagNode() 250 Ops[1] = createConstant(ConstantInt::get(Int64, Size)); in createTBAATypeNode() 265 auto *SizeNode = createConstant(ConstantInt::get(Int64, Size)); in createTBAAAccessTag() 313 Ops[0] = createConstant(ConstantInt::get(Int64Ty, GUID)); in createPseudoProbeDesc() [all …]
|
| H A D | ConstantFold.cpp | 168 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in FoldBitCast() 226 if (ConstantInt *CI = dyn_cast<ConstantInt>(C)) { in ExtractConstantBytes() 247 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS)) in ExtractConstantBytes() 479 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in ConstantFoldCastInstruction() 489 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in ConstantFoldCastInstruction() 496 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in ConstantFoldCastInstruction() 507 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in ConstantFoldCastInstruction() 685 ConstantInt *CIdx = dyn_cast<ConstantInt>(Idx); in ConstantFoldInsertElementInstruction() 1003 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() 1123 if (ConstantInt *CI1 = dyn_cast<ConstantInt>(C1)) { in ConstantFoldBinaryInstruction() [all …]
|
| H A D | Metadata.cpp | 993 ConstantInt *Low, ConstantInt *High) { in tryMergeRange() 1003 cast<ConstantInt>(ConstantInt::get(Ty, Union.getLower())); in tryMergeRange() 1005 cast<ConstantInt>(ConstantInt::get(Ty, Union.getUpper())); in tryMergeRange() 1012 ConstantInt *Low, ConstantInt *High) { in addRange() 1040 ConstantInt *ALow = mdconst::extract<ConstantInt>(A->getOperand(2 * AI)); in getMostGenericRange() 1041 ConstantInt *BLow = mdconst::extract<ConstantInt>(B->getOperand(2 * BI)); in getMostGenericRange() 1068 ConstantInt *FB = EndPoints[0]; in getMostGenericRange() 1069 ConstantInt *FE = EndPoints[1]; in getMostGenericRange() 1097 ConstantInt *AVal = mdconst::extract<ConstantInt>(A->getOperand(0)); in getMostGenericAlignmentOrDereferenceable() 1098 ConstantInt *BVal = mdconst::extract<ConstantInt>(B->getOperand(0)); in getMostGenericAlignmentOrDereferenceable() [all …]
|
| /freebsd-13.1/contrib/llvm-project/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 …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | MemoryLocation.cpp | 115 if (ConstantInt *C = dyn_cast<ConstantInt>(MTI->getLength())) in getForSource() 136 if (ConstantInt *C = dyn_cast<ConstantInt>(MI->getLength())) in getForDest() 167 if (ConstantInt *LenCI = dyn_cast<ConstantInt>(II->getArgOperand(2))) in getForArgument() 238 if (const ConstantInt *LenCI = in getForArgument() 239 dyn_cast<ConstantInt>(Call->getArgOperand(2))) in getForArgument() 247 if (const ConstantInt *LenCI = in getForArgument() 248 dyn_cast<ConstantInt>(Call->getArgOperand(2))) in getForArgument() 254 if (const ConstantInt *LenCI = in getForArgument() 255 dyn_cast<ConstantInt>(Call->getArgOperand(2))) in getForArgument() 263 if (const ConstantInt *LenCI = in getForArgument() [all …]
|
| H A D | TypeBasedAliasAnalysis.cpp | 184 ConstantInt *CI = mdconst::dyn_extract<ConstantInt>(Node->getOperand(2)); in isTypeImmutable() 232 return mdconst::extract<ConstantInt>(Node->getOperand(2))->getZExtValue(); in getOffset() 248 ConstantInt *CI = mdconst::dyn_extract<ConstantInt>(Node->getOperand(OpNo)); in isTypeImmutable() 338 uint64_t Cur = mdconst::extract<ConstantInt>(Node->getOperand(Idx + 1)) in getField() 548 auto *OffsetNode = ConstantAsMetadata::get(ConstantInt::get(Int64, 0)); in createAccessTag() 555 ConstantAsMetadata::get(ConstantInt::get(Int64, AccessSize)); in createAccessTag() 766 ConstantInt *InnerOffset = mdconst::extract<ConstantInt>(MD->getOperand(i)); in shiftTBAAStruct() 767 ConstantInt *InnerSize = in shiftTBAAStruct() 768 mdconst::extract<ConstantInt>(MD->getOperand(i + 1)); in shiftTBAAStruct() 782 ConstantInt::get(InnerOffset->getType(), NewOffset))); in shiftTBAAStruct() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LowerMemIntrinsics.cpp | 18 Value *DstAddr, ConstantInt *CopyLen, in createMemCpyLoopKnownSize() 82 Constant *LoopEndCI = ConstantInt::get(TypeOfCopyLen, LoopEndCount); in createMemCpyLoopKnownSize() 113 OpTy, CastedSrc, ConstantInt::get(TypeOfCopyLen, GepIndex)); in createMemCpyLoopKnownSize() 123 OpTy, CastedDst, ConstantInt::get(TypeOfCopyLen, GepIndex)); in createMemCpyLoopKnownSize() 171 ConstantInt *CILoopOpSize = ConstantInt::get(ILengthType, LoopOpSize); in createMemCpyLoopUnknownSize() 183 LoopIndex->addIncoming(ConstantInt::get(CopyLenType, 0U), PreLoopBB); in createMemCpyLoopUnknownSize() 213 ConstantInt *Zero = ConstantInt::get(ILengthType, 0U); in createMemCpyLoopUnknownSize() 259 ConstantInt *Zero = ConstantInt::get(ILengthType, 0U); in createMemCpyLoopUnknownSize() 342 LoopPhi, ConstantInt::get(TypeOfCopyLen, 1), "index_ptr"); in createMemMoveLoop() 407 LoopIndex->addIncoming(ConstantInt::get(TypeOfCopyLen, 0), OrigBB); in createMemSetLoop() [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 ()() 258 ConstantInt *NewLowerBound = Pivot.Low; in SwitchConvert() 262 ConstantInt *NewUpperBound = ConstantInt::get(NewLowerBound->getContext(), in SwitchConvert() 377 ConstantInt *LowerBound = nullptr; in ProcessSwitchInst() 378 ConstantInt *UpperBound = nullptr; in ProcessSwitchInst() 414 LowerBound = ConstantInt::get(SI->getContext(), Min); in ProcessSwitchInst() [all …]
|
| H A D | SimplifyLibCalls.cpp | 184 if (ConstantInt *LenC = dyn_cast<ConstantInt>(Size)) { in annotateNonNullAndDereferenceable() 255 ConstantInt *LengthArg = dyn_cast<ConstantInt>(Size); in optimizeStrNCat() 295 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in optimizeStrChr() 334 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in optimizeStrRChr() 426 if (ConstantInt *LengthArg = dyn_cast<ConstantInt>(Size)) in optimizeStrNCmp() 485 ConstantInt *Size = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in optimizeStrNDup() 559 if (ConstantInt *LengthArg = dyn_cast<ConstantInt>(Size)) in optimizeStrNCpy() 868 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in optimizeMemChr() 869 ConstantInt *LenC = dyn_cast<ConstantInt>(Size); in optimizeMemChr() 1040 ConstantInt *LenC = dyn_cast<ConstantInt>(Size); in optimizeMemCmpBCmpCommon() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | StraightLineStrengthReduce.cpp | 154 ConstantInt *Index = nullptr; 316 ConstantInt *ConstIdx = dyn_cast<ConstantInt>(Idx); in hasOnlyOneNonZeroIndex() 414 ConstantInt *Idx = nullptr; in allocateCandidatesAndFindBasisForAdd() 425 ConstantInt *One = ConstantInt::get(cast<IntegerType>(I->getType()), 1); in allocateCandidatesAndFindBasisForAdd() 446 ConstantInt *Idx = nullptr; in allocateCandidatesAndFindBasisForMul() 459 ConstantInt *Zero = ConstantInt::get(cast<IntegerType>(I->getType()), 0); in allocateCandidatesAndFindBasisForMul() 489 ConstantInt *ScaledIdx = ConstantInt::get( in allocateCandidatesAndFindBasisForGEP() 503 ConstantInt *RHS = nullptr; in factorArrayIndex() 523 ConstantInt *PowerOf2 = in factorArrayIndex() 620 ConstantInt *Exponent = ConstantInt::get(DeltaType, IndexOffset.logBase2()); in emitBump() [all …]
|
| H A D | LowerExpectIntrinsic.cpp | 89 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect() 121 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(Expect->getArgOperand(1)); in handlePhiDef() 155 ConstantInt *CInt = dyn_cast<ConstantInt>(BinOp->getOperand(1)); in handlePhiDef() 169 Result ^= cast<ConstantInt>(Op->getOperand(1))->getValue(); in handlePhiDef() 208 ConstantInt *CI = dyn_cast<ConstantInt>(PhiOpnd); in handlePhiDef() 276 ConstantInt *CmpConstOperand = nullptr; in handleBrSelExpect() 285 CmpConstOperand = dyn_cast<ConstantInt>(CmpI->getOperand(1)); in handleBrSelExpect() 307 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleBrSelExpect()
|
| H A D | SeparateConstOffsetFromGEP.cpp | 545 if (ConstantInt *ConstLHS = dyn_cast<ConstantInt>(LHS)) { in CanTraceInto() 549 if (ConstantInt *ConstRHS = dyn_cast<ConstantInt>(RHS)) { in CanTraceInto() 615 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in find() 684 assert(isa<ConstantInt>(U)); in distributeExtsAndCloneChain() 718 assert(isa<ConstantInt>(UserChain[ChainIndex])); in removeConstOffset() 735 if (ConstantInt *CI = dyn_cast<ConstantInt>(NextInChain)) { in removeConstOffset() 871 if (ConstantInt *CI = dyn_cast<ConstantInt>(Idx)) in lowerToSingleIndexGEPs() 932 if (ConstantInt *CI = dyn_cast<ConstantInt>(Idx)) in lowerToArithmetics() 1322 isa<ConstantInt>(FirstOffsetDef->getOperand(1))) in isLegalToSwapOperand() 1331 (isa<ConstantInt>(BO->getOperand(0)) || in isLegalToSwapOperand() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCompares.cpp | 137 ConstantInt *Idx = dyn_cast<ConstantInt>(GEP->getOperand(i)); in foldCmpLoadFromIndexedGlobal() 450 ConstantInt *CI = dyn_cast<ConstantInt>(GEP->getOperand(i)); in evaluateGEPOffsetExpression() 684 if (isa<ConstantInt>(Op) && cast<ConstantInt>(Op)->isZero()) in rewriteGEPAsOffset() 1881 ConstantInt *C2 = cast<ConstantInt>(Y); in foldICmpAndConstant() 3995 if (ConstantInt *C1 = dyn_cast<ConstantInt>(B)) in foldICmpBinOp() 3996 if (ConstantInt *C2 = dyn_cast<ConstantInt>(D)) { in foldICmpBinOp() 4818 if (ConstantInt *CI = dyn_cast<ConstantInt>(OtherVal)) { in processUMulZExtIdiom() 4830 if (ConstantInt *CI = dyn_cast<ConstantInt>(OtherVal)) { in processUMulZExtIdiom() 4841 if (ConstantInt *CI = dyn_cast<ConstantInt>(OtherVal)) { in processUMulZExtIdiom() 4853 if (ConstantInt *CI = dyn_cast<ConstantInt>(OtherVal)) { in processUMulZExtIdiom() [all …]
|
| H A D | InstCombineShifts.cpp | 283 ConstantExpr::getSub(ConstantInt::get(ShAmtsDiff->getType(), in dropRedundantMaskingOfLeftShiftInput() 545 InnerShift->setOperand(1, ConstantInt::get(ShType, ShAmt)); in foldShiftedShift() 574 ConstantInt::get(ShType, Mask)); in foldShiftedShift() 754 Constant *Mask = ConstantInt::get(Ty, Bits); in FoldShiftByConstant() 786 Constant *Mask = ConstantInt::get(Ty, Bits); in FoldShiftByConstant() 937 Constant *ShiftDiff = ConstantInt::get(Ty, ShAmt - ShrAmt); in visitShl() 945 Constant *ShiftDiff = ConstantInt::get(Ty, ShrAmt - ShAmt); in visitShl() 1005 Constant *AllOnes = ConstantInt::getAllOnesValue(Ty); in visitShl() 1033 ConstantInt::get(Ty, APInt::getSignMask(BitWidth)), X); in visitShl() 1064 Constant *RHS = ConstantInt::getSigned(Ty, IsPop ? -1 : 0); in visitLShr() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXImageOptimizer.cpp | 43 void replaceWith(Instruction *From, ConstantInt *To); 97 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePSampler() 101 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePSampler() 114 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePSurface() 120 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePSurface() 132 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePTexture() 139 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePTexture() 147 void NVPTXImageOptimizer::replaceWith(Instruction *From, ConstantInt *To) { in replaceWith()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstCombineIntrinsic.cpp | 280 const ConstantInt *CMask = dyn_cast<ConstantInt>(Src1); in instCombineIntrinsic() 413 ConstantInt *CWidth = dyn_cast<ConstantInt>(II.getArgOperand(2)); in instCombineIntrinsic() 428 ConstantInt *COffset = dyn_cast<ConstantInt>(II.getArgOperand(1)); in instCombineIntrinsic() 466 ConstantInt *En = cast<ConstantInt>(II.getArgOperand(1)); in instCombineIntrinsic() 557 const ConstantInt *CC = cast<ConstantInt>(II.getArgOperand(2)); in instCombineIntrinsic() 731 const ConstantInt *C = dyn_cast<ConstantInt>(II.getArgOperand(0)); in instCombineIntrinsic() 741 auto *BC = cast<ConstantInt>(II.getArgOperand(5)); in instCombineIntrinsic() 742 auto *RM = cast<ConstantInt>(II.getArgOperand(3)); in instCombineIntrinsic() 758 ConstantInt *FetchInvalid = cast<ConstantInt>(II.getArgOperand(4)); in instCombineIntrinsic() 759 ConstantInt *BoundCtrl = cast<ConstantInt>(II.getArgOperand(5)); in instCombineIntrinsic() [all …]
|
| /freebsd-13.1/contrib/llvm-project/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()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | InstrOrderFile.cpp | 135 Value *IdxFlags[] = {ConstantInt::get(Int32Ty, 0), in generateCodeSequence() 136 ConstantInt::get(Int32Ty, FuncId)}; in generateCodeSequence() 139 entryB.CreateStore(ConstantInt::get(Int8Ty, 1), MapAddr); in generateCodeSequence() 141 entryB.CreateICmpEQ(loadBitMap, ConstantInt::get(Int8Ty, 0)); in generateCodeSequence() 146 AtomicRMWInst::Add, BufferIdx, ConstantInt::get(Int32Ty, 1), in generateCodeSequence() 150 IdxVal, ConstantInt::get(Int32Ty, INSTR_ORDER_FILE_BUFFER_MASK)); in generateCodeSequence() 151 Value *BufferGEPIdx[] = {ConstantInt::get(Int32Ty, 0), WrappedIdx}; in generateCodeSequence() 154 updateB.CreateStore(ConstantInt::get(Type::getInt64Ty(Ctx), MD5Hash(F.getName())), in generateCodeSequence()
|
| /freebsd-13.1/contrib/llvm-project/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 | 51 ConstantInt *extractNumericTypeId(MDNode *MD); 66 ConstantInt *CrossDSOCFI::extractNumericTypeId(MDNode *MD) { in extractNumericTypeId() 71 auto C = dyn_cast_or_null<ConstantInt>(TM->getValue()); in extractNumericTypeId() 89 if (ConstantInt *TypeId = extractNumericTypeId(Type)) in buildCFICheck() 98 if (ConstantInt *TypeId = in buildCFICheck() 144 ConstantInt *CaseTypeId = ConstantInt::get(Type::getInt64Ty(Ctx), TypeId); in buildCFICheck()
|
| /freebsd-13.1/contrib/llvm-project/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;
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | ValueLattice.h | 277 if (isConstant() && isa<ConstantInt>(getConstant())) { in asConstantInteger() 278 return cast<ConstantInt>(getConstant())->getValue(); in asConstantInteger() 311 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) 324 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) in markNotConstant() 467 ? ConstantInt::getTrue(Ty) : ConstantInt::getFalse(Ty); in getCompare() 478 return ConstantInt::getTrue(Ty); in getCompare() 480 return ConstantInt::getFalse(Ty); in getCompare()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | IntrinsicInst.h | 857 ConstantInt *getVolatileCst() const { in getVolatileCst() 941 ConstantInt *getLength() const { in getLength() 1120 ConstantInt *getHash() const { in getHash() 1128 ConstantInt *getIndex() const { in getIndex() 1160 ConstantInt *getHash() const { in getHash() 1168 ConstantInt *getValueKind() const { in getValueKind() 1173 ConstantInt *getIndex() const { in getIndex() 1188 ConstantInt *getFuncGuid() const { in getFuncGuid() 1192 ConstantInt *getIndex() const { in getIndex() 1196 ConstantInt *getAttributes() const { in getAttributes() [all …]
|
| /freebsd-13.1/contrib/llvm-project/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()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86InstCombineIntrinsic.cpp | 225 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() 563 auto *CInt = dyn_cast<ConstantInt>(II.getArgOperand(2)); in simplifyX86insertps() 621 ConstantInt *CILength, ConstantInt *CIIndex, in simplifyX86extrq() 625 Constant *Args[] = {ConstantInt::get(IntTy64, Val), in simplifyX86extrq() 875 APInt Index = cast<ConstantInt>(COp)->getValue(); in simplifyX86vpermilvar() 920 uint32_t Index = cast<ConstantInt>(COp)->getZExtValue(); in simplifyX86vpermv() 1259 auto *C = dyn_cast<ConstantInt>(Mask); in instCombineIntrinsic() [all …]
|