/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUAtomicOptimizer.cpp | 418 {Identity, V, B.getInt32(DPP::ROW_XMASK0 | 1 << Idx), in buildReduction() 419 B.getInt32(0xf), B.getInt32(0xf), B.getFalse()})); in buildReduction() 426 {V, V, B.getInt32(-1), B.getInt32(-1), B.getFalse(), B.getFalse()}); in buildReduction() 443 Value *Lane0 = B.CreateCall(ReadLane, {V, B.getInt32(0)}); in buildReduction() 444 Value *Lane32 = B.CreateCall(ReadLane, {V, B.getInt32(32)}); in buildReduction() 462 {Identity, V, B.getInt32(DPP::ROW_SHR0 | 1 << Idx), in buildScan() 463 B.getInt32(0xf), B.getInt32(0xf), B.getFalse()})); in buildScan() 470 {Identity, V, B.getInt32(DPP::BCAST15), B.getInt32(0xa), in buildScan() 471 B.getInt32(0xf), B.getFalse()})); in buildScan() 475 {Identity, V, B.getInt32(DPP::BCAST31), B.getInt32(0xc), in buildScan() [all …]
|
H A D | AMDGPUCodeGenPrepare.cpp | 849 ConstantInt *Zero = Builder.getInt32(0); in emitSqrtIEEE2ULP() 851 Builder.CreateSelect(NeedScale, Builder.getInt32(32), Zero); in emitSqrtIEEE2ULP() 858 Builder.CreateSelect(NeedScale, Builder.getInt32(-16), Zero); in emitSqrtIEEE2ULP() 1235 ConstantInt *One = Builder.getInt32(1); in expandDivRem24Impl() 1243 JQ = Builder.CreateAShr(JQ, Builder.getInt32(30)); in expandDivRem24Impl() 1296 JQ = Builder.CreateSelect(CV, JQ, Builder.getInt32(0)); in expandDivRem24Impl() 1317 = Builder.getInt32((UINT64_C(1) << DivBits) - 1); in expandDivRem24Impl() 1369 return Builder.CreateAShr(V, Builder.getInt32(31)); in getSign32() 1408 ConstantInt *Zero = Builder.getInt32(0); in expandDivRem32() 1409 ConstantInt *One = Builder.getInt32(1); in expandDivRem32()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | MatrixBuilder.h | 71 Value *Ops[] = {DataPtr, Stride, B.getInt1(IsVolatile), B.getInt32(Rows), 72 B.getInt32(Columns)}; 95 B.getInt32(Rows), B.getInt32(Columns)}; 117 Value *Ops[] = {Matrix, B.getInt32(Rows), B.getInt32(Columns)}; 135 Value *Ops[] = {LHS, RHS, B.getInt32(LHSRows), B.getInt32(LHSColumns), 136 B.getInt32(RHSColumns)};
|
/freebsd/contrib/llvm-project/llvm/lib/Frontend/HLSL/ |
H A D | HLSLResource.cpp | 65 ConstantAsMetadata::get(B.getInt32(static_cast<int>(RK))), in FrontendResource() 66 ConstantAsMetadata::get(B.getInt32(static_cast<int>(ElTy))), in FrontendResource() 68 ConstantAsMetadata::get(B.getInt32(ResIndex)), in FrontendResource() 69 ConstantAsMetadata::get(B.getInt32(Space))}); in FrontendResource()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | PGOCtxProfLowering.cpp | 244 Builder.getInt32(NrCounters), in lowerFunction() 245 Builder.getInt32(NrCallsites)}); in lowerFunction() 250 Builder.CreateCall(GetCtx, {&F, Guid, Builder.getInt32(NrCounters), in lowerFunction() 251 Builder.getInt32(NrCallsites)}); in lowerFunction() 303 {Builder.getInt32(0), Builder.getInt32(1), AsStep->getIndex()}); in lowerFunction() 327 {Builder.getInt32(0), Builder.getInt32(2), in lowerFunction()
|
H A D | GCOVProfiling.cpp | 1114 Constant *Zero32 = Builder.getInt32(0); in insertCounterWriteout() 1131 Builder.getInt32(endian::read32be(Options.Version)), in insertCounterWriteout() 1132 Builder.getInt32(CfgChecksum)}); in insertCounterWriteout() 1140 {Builder.getInt32(j), in insertCounterWriteout() 1141 Builder.getInt32(FuncChecksum), in insertCounterWriteout() 1142 Builder.getInt32(CfgChecksum)})); in insertCounterWriteout() 1148 {Builder.getInt32(Arcs), ConstantExpr::getInBoundsGetElementPtr( in insertCounterWriteout() 1178 {StartFileCallArgs, Builder.getInt32(CountersSize), in insertCounterWriteout() 1224 IV->addIncoming(Builder.getInt32(0), BB); in insertCounterWriteout() 1226 FileInfoArrayTy, FileInfoArrayGV, {Builder.getInt32( in insertCounterWriteout() [all...] |
H A D | PGOInstrumentation.cpp | 896 {Name, CFGHash, Builder.getInt32(1), Builder.getInt32(0)}); in instrumentOneFunc() 936 {Name, CFGHash, Builder.getInt32(TotalNrCallsites), in instrumentOneFunc() 937 Builder.getInt32(CallsiteIndex++), in instrumentOneFunc() 951 {Name, CFGHash, Builder.getInt32(NumCounters), Builder.getInt32(I)}); in instrumentOneFunc() 965 {Name, CFGHash, Builder.getInt32(NumCounters), Builder.getInt32(I++)}); in instrumentOneFunc() 1013 ToProfile, Builder.getInt32(Kind), Builder.getInt32(SiteIndex++)}, in instrumentOneFunc() 1697 {FuncNameVar, Builder.getInt64(FuncHash), Builder.getInt32(TotalNumCtrs), in instrumentOneSelectInst() 1698 Builder.getInt32(*CurCtrIdx), Step}); in instrumentOneSelectInst()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
H A D | DXILResource.cpp | 278 ConstantAsMetadata::get(B.getInt32(TypedBufferElementType))); in write() 280 B.getInt32(static_cast<uint32_t>(*ElementType)))); in write() 290 Entries[0] = ConstantAsMetadata::get(B.getInt32(ID)); in write() 293 Entries[3] = ConstantAsMetadata::get(B.getInt32(Space)); in write() 294 Entries[4] = ConstantAsMetadata::get(B.getInt32(LowerBound)); in write() 295 Entries[5] = ConstantAsMetadata::get(B.getInt32(RangeSize)); in write() 304 ConstantAsMetadata::get(B.getInt32(static_cast<uint32_t>(Shape))); in write() 318 Entries[6] = ConstantAsMetadata::get(B.getInt32(CBufferSizeInBytes)); in write()
|
H A D | DXILMetadata.cpp | 31 MDVals[0] = ConstantAsMetadata::get(B.getInt32(ValidatorVer.getMajor())); in update() 33 ConstantAsMetadata::get(B.getInt32(ValidatorVer.getMinor().value_or(0))); in update() 88 Vals[1] = ConstantAsMetadata::get(B.getInt32(Ver.getMajor())); in createShaderModelMD() 89 Vals[2] = ConstantAsMetadata::get(B.getInt32(Ver.getMinor().value_or(0))); in createShaderModelMD() 100 Vals[0] = ConstantAsMetadata::get(B.getInt32(Ver.getMajor())); in createDXILVersionMD() 101 Vals[1] = ConstantAsMetadata::get(B.getInt32(Ver.getMinor().value_or(0))); in createDXILVersionMD()
|
H A D | DXILOpLowering.cpp | 85 Value *DXILOpArg = B.getInt32(static_cast<unsigned>(DXILOp)); in lowerIntrinsic()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | MVEGatherScatterLowering.cpp | 466 {Ptr, Builder.getInt32(Increment)}); in tryCreateMaskedGatherBase() 471 {Ptr, Builder.getInt32(Increment), Mask}); in tryCreateMaskedGatherBase() 487 {Ptr, Builder.getInt32(Increment)}); in tryCreateMaskedGatherBaseWB() 492 {Ptr, Builder.getInt32(Increment), Mask}); in tryCreateMaskedGatherBaseWB() 562 {BasePtr, Offsets, Builder.getInt32(MemoryTy->getScalarSizeInBits()), in tryCreateMaskedGatherOffset() 563 Builder.getInt32(Scale), Builder.getInt32(Unsigned), Mask}); in tryCreateMaskedGatherOffset() 568 {BasePtr, Offsets, Builder.getInt32(MemoryTy->getScalarSizeInBits()), in tryCreateMaskedGatherOffset() 569 Builder.getInt32(Scale), Builder.getInt32(Unsigned)}); in tryCreateMaskedGatherOffset() 632 {Ptr, Builder.getInt32(Increment), Input}); in tryCreateMaskedScatterBase() 637 {Ptr, Builder.getInt32(Increment), Input, Mask}); in tryCreateMaskedScatterBase() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | IRBuilder.cpp | 197 Value *Ops[] = {Ptr, Val, Size, getInt32(ElementSize)}; in CreateElementUnorderedAtomicMemSet() 265 Value *Ops[] = {Dst, Src, Size, getInt32(ElementSize)}; in CreateElementUnorderedAtomicMemCpy() 381 Value *Ops[] = {Dst, Src, Size, getInt32(ElementSize)}; in CreateElementUnorderedAtomicMemMove() 588 Value *Ops[] = {Ptr, getInt32(Alignment.value()), Mask, PassThru}; in CreateMaskedLoad() 606 Value *Ops[] = {Val, Ptr, getInt32(Alignment.value()), Mask}; in CreateMaskedStore() 647 Value *Ops[] = {Ptrs, getInt32(Alignment.value()), Mask, PassThru}; in CreateMaskedGather() 672 Value *Ops[] = {Data, Ptrs, getInt32(Alignment.value()), Mask}; in CreateMaskedScatter() 722 Args.push_back(B.getInt32(NumPatchBytes)); in getStatepointArgs() 724 Args.push_back(B.getInt32(CallArgs.size())); in getStatepointArgs() 725 Args.push_back(B.getInt32(Flags)); in getStatepointArgs() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGHLSLRuntime.cpp | 45 MDNode *Val = MDNode::get(Ctx, {ConstantAsMetadata::get(B.getInt32(Major)), in addDxilValVersion() 46 ConstantAsMetadata::get(B.getInt32(Minor))}); in addDxilValVersion() 98 Value *ZeroIdx = B.getInt32(0); in replaceBuffer() 102 B.CreateGEP(Buf.LayoutStruct, CBGV, {ZeroIdx, B.getInt32(Offset)}); in replaceBuffer() 331 Value *Elt = B.CreateCall(F, {B.getInt32(I)}); in buildVectorInput() 336 return B.CreateCall(F, {B.getInt32(0)}); in buildVectorInput()
|
H A D | CodeGenPGO.cpp | 1200 Builder.getInt32(NumRegionCounters), in emitCounterSetOrIncrement() 1201 Builder.getInt32(Counter), StepV}; in emitCounterSetOrIncrement() 1232 Builder.getInt32(RegionMCDCState->BitmapBits)}; in emitMCDCParameters() 1266 Builder.getInt32(MCDCTestVectorBitmapOffset), in emitMCDCTestVectorBitmapUpdate() 1283 Builder.CreateStore(Builder.getInt32(0), MCDCCondBitmapAddr); in emitMCDCCondBitmapReset() 1321 auto *NewTV = Builder.CreateAdd(CurTV, Builder.getInt32(TVIdxs[true])); in emitMCDCCondBitmapUpdate() 1323 Val, NewTV, Builder.CreateAdd(CurTV, Builder.getInt32(TVIdxs[false]))); in emitMCDCCondBitmapUpdate() 1379 Builder.getInt32(ValueKind), in valueProfile() 1380 Builder.getInt32(NumValueSites[ValueKind]++) in valueProfile()
|
H A D | CGCleanup.cpp | 332 createStoreInstBefore(CGF.Builder.getInt32(Fixup.DestinationIndex), in ResolveAllBranchFixups() 342 Switch->addCase(CGF.Builder.getInt32(Fixup.DestinationIndex), in ResolveAllBranchFixups() 402 Switch->addCase(Builder.getInt32(Fixup.DestinationIndex), Block); in ResolveBranchFixups() 825 Builder.CreateStore(Builder.getInt32(0), getNormalCleanupDestSlot()); in PopCleanupBlock() 923 Switch->addCase(Builder.getInt32(0), FallthroughDest); in PopCleanupBlock() 959 createStoreInstBefore(Builder.getInt32(Fixup.DestinationIndex), in PopCleanupBlock() 1135 llvm::ConstantInt *Index = Builder.getInt32(Dest.getDestIndex()); in EmitBranchThroughCleanup()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 719 Value *ThrewValueCmp = IRB.CreateICmpNE(ThrewValue, IRB.getInt32(0)); in wrapTestSetjmp() 749 Value *Cmp2 = IRB.CreateICmpEQ(ThenLabel, IRB.getInt32(0)); in wrapTestSetjmp() 765 LabelPHI->addIncoming(IRB.getInt32(-1), ElseBB1); in wrapTestSetjmp() 876 CI->replaceAllUsesWith(IRB.getInt32(0)); in nullifySetjmp() 1313 SetjmpRet->addIncoming(IRB.getInt32(0), BB); in runSjLjOnFunction() 1323 Value *Args[] = {CI->getArgOperand(0), IRB.getInt32(SetjmpRetPHIs.size()), in runSjLjOnFunction() 1526 SI->addCase(IRB.getInt32(I + 1), SetjmpRetPHIs[I]->getParent()); in handleLongjmpableCallsForEmscriptenSjLj() 1611 IRB.CreateCall(CatchF, {IRB.getInt32(WebAssembly::C_LONGJMP)}, "thrown"); in handleLongjmpableCallsForWasmSjLj() 1630 Value *Cmp = IRB.CreateICmpEQ(Label, IRB.getInt32(0)); in handleLongjmpableCallsForWasmSjLj() 1653 LabelPHI->addIncoming(IRB.getInt32(-1), Entry); in handleLongjmpableCallsForWasmSjLj() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | SMEABIPass.cpp | 139 Builder.getInt32(0xff)); in updateNewStateFunctions() 146 {Builder.getInt32(0)}); in updateNewStateFunctions()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | WasmEHPrepare.cpp | 333 IRB.CreateCall(CatchF, {IRB.getInt32(WebAssembly::CPP_EXCEPTION)}, "exn"); in prepareEHPad() 352 IRB.CreateCall(LPadIndexF, {FPI, IRB.getInt32(Index)}); in prepareEHPad() 355 IRB.CreateStore(IRB.getInt32(Index), LPadIndexField); in prepareEHPad()
|
H A D | SanitizerBinaryMetadata.cpp | 85 {IRB.getInt(NewFeatures), IRB.getInt32(Size)}}})); in runOnMachineFunction()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | AMDGPUEmitPrintf.cpp | 71 auto IsLastValue = Builder.getInt32(IsLast); in callAppendArgs() 72 auto NumArgsValue = Builder.getInt32(NumArgs); in callAppendArgs() 157 auto IsLastInt32 = Builder.getInt32(isLast); in callAppendStringN() 470 auto ConstantTwo = Builder.getInt32(2); in emitAMDGPUPrintfCall()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonGenExtract.cpp | 216 Value *NewIn = IRB.CreateCall(ExtF, {BF, IRB.getInt32(W), IRB.getInt32(SR)}); in INITIALIZE_PASS_DEPENDENCY()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86WinEHState.cpp | 341 Builder.getInt32(0), "frameaddr"); in emitExceptionRegistrationRecord() 480 Args.push_back(Builder.getInt32(OptionalArgs.size())); in rewriteSetJmpCall() 774 State = Builder.getInt32(getStateForCall(BlockColors, FuncInfo, *Call)); in addStateStores() 784 Builder.CreateStore(Builder.getInt32(State), StateField); in insertStateNumberStore()
|
/freebsd/contrib/llvm-project/llvm/lib/Frontend/Offloading/ |
H A D | OffloadWrapper.cpp | 464 Switch->addCase(Builder.getInt32(llvm::offloading::OffloadGlobalEntry), in createRegisterGlobalsFunction() 470 Switch->addCase(Builder.getInt32(llvm::offloading::OffloadGlobalManagedEntry), in createRegisterGlobalsFunction() 478 Switch->addCase(Builder.getInt32(llvm::offloading::OffloadGlobalSurfaceEntry), in createRegisterGlobalsFunction() 487 Switch->addCase(Builder.getInt32(llvm::offloading::OffloadGlobalTextureEntry), in createRegisterGlobalsFunction()
|
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/ |
H A D | OMPIRBuilder.cpp | 390 cast<BinaryOperator>(Builder.CreateAdd(FakeVal, Builder.getInt32(10))); in createFakeIntVal() 497 Value *Version = Builder.getInt32(OMP_KERNEL_ARG_VERSION); in getKernelArgsVector() 498 Value *PointerNum = Builder.getInt32(KernelArgs.NumTargetItems); in getKernelArgsVector() 1006 CancelKind = Builder.getInt32(Value); \ in createCancel() 1220 : Builder.getInt32(1); in targetParallelCallback() 1227 /* number of threads */ NumThreads ? NumThreads : Builder.getInt32(-1), in targetParallelCallback() 1228 /* Proc bind */ Builder.getInt32(-1), in targetParallelCallback() 1305 Ident, Builder.getInt32(NumCapturedVars), in hostParallelCallback() 1853 Value *Flags = Builder.getInt32(Tied); in createTask() 1856 Builder.CreateSelect(Final, Builder.getInt32(2), Builder.getInt32(0)); in createTask() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVEmitIntrinsics.cpp | 298 {B.getInt32(getPointerAddressSpace(Arg->getType()))}, B); in buildAssignPtr() 789 {B.getInt32(getPointerAddressSpace(OpTy))}, B); in deduceOperandElementType() 808 B.getInt32(getPointerAddressSpace(OpTy))}; in deduceOperandElementType() 1117 SmallVector<Value *, 2> Args = {Pointer, VMD, B.getInt32(AddressSpace)}; in replacePointerOperandWithPtrCast() 1264 Args.push_back(B.getInt32(Op)); in visitInsertValueInst() 1278 Args.push_back(B.getInt32(Op)); in visitExtractValueInst() 1355 Args.push_back(B.getInt32(I.getSyncScopeID())); in visitAtomicCmpXchgInst() 1356 Args.push_back(B.getInt32( in visitAtomicCmpXchgInst() 1358 Args.push_back(B.getInt32( in visitAtomicCmpXchgInst() 1385 Constant *Const = isAggrConstForceInt32(Init) ? B.getInt32(1) : Init; in processGlobalValue()
|