Home
last modified time | relevance | path

Searched refs:CreateCall (Results 1 – 25 of 94) sorted by relevance

1234

/external/llvm/lib/Transforms/Utils/
DBuildLibCalls.cpp51 CallInst *CI = B.CreateCall(StrLen, CastToCStr(Ptr, B), "strlen"); in EmitStrLen()
77 CallInst *CI = B.CreateCall( in EmitStrChr()
101 CallInst *CI = B.CreateCall( in EmitStrNCmp()
127 B.CreateCall(StrCpy, {CastToCStr(Dst, B), CastToCStr(Src, B)}, Name); in EmitStrCpy()
151 CallInst *CI = B.CreateCall( in EmitStrNCpy()
178 CallInst *CI = B.CreateCall(MemCpy, {Dst, Src, Len, ObjSize}); in EmitMemCpyChk()
199 CallInst *CI = B.CreateCall(MemChr, {CastToCStr(Ptr, B), Val, Len}, "memchr"); in EmitMemChr()
224 CallInst *CI = B.CreateCall( in EmitMemCmp()
260 CallInst *CI = B.CreateCall(Callee, Op, Name); in EmitUnaryFloatFnCall()
281 CallInst *CI = B.CreateCall(Callee, {Op1, Op2}, Name); in EmitBinaryFloatFnCall()
[all …]
DModuleUtils.cpp125 IRB.CreateCall(InitFunction, InitArgs); in createSanitizerCtorAndInitFunctions()
131 IRB.CreateCall(VersionCheckFunction, {}); in createSanitizerCtorAndInitFunctions()
/external/clang/lib/CodeGen/
DCGBuiltin.cpp225 llvm::CallInst *Call = CGF.Builder.CreateCall(F, V); in EmitFAbs()
286 llvm::Value *Tmp = CGF.Builder.CreateCall(Callee, {X, Y}); in EmitOverflowIntrinsic()
342 return Builder.CreateCall(CGM.getIntrinsic(inst), ArgValue); in EmitVAStartEnd()
407 return Builder.CreateCall(F, {EmitScalarExpr(E), CI}); in emitBuiltinObjectSize()
447 return RValue::get(Builder.CreateCall(CGM.getIntrinsic(Intrinsic::vacopy), in EmitBuiltinExpr()
526 Value *Result = Builder.CreateCall(F, {ArgValue, ZeroUndef}); in EmitBuiltinExpr()
543 Value *Result = Builder.CreateCall(F, {ArgValue, ZeroUndef}); in EmitBuiltinExpr()
560 Builder.CreateAdd(Builder.CreateCall(F, {ArgValue, Builder.getTrue()}), in EmitBuiltinExpr()
580 Value *Tmp = Builder.CreateCall(F, ArgValue); in EmitBuiltinExpr()
596 Value *Result = Builder.CreateCall(F, ArgValue); in EmitBuiltinExpr()
[all …]
DCGCUDANV.cpp200 Builder.CreateCall(RegisterFunc, args); in makeRegisterKernelsFn()
264 llvm::CallInst *RegisterFatbinCall = CtorBuilder.CreateCall( in makeModuleCtorFunction()
274 CtorBuilder.CreateCall(RegisterKernelsFunc, RegisterFatbinCall); in makeModuleCtorFunction()
310 DtorBuilder.CreateCall(UnregisterFatbinFunc, HandleValue); in makeModuleDtorFunction()
DCGObjCRuntime.cpp164 CGF.Builder.CreateCall(Fn)->setDoesNotThrow(); in Emit()
238 Exn = CGF.Builder.CreateCall(beginCatchFn, RawExn, "exn.adjusted"); in EmitTryCatchStmt()
315 CGF.Builder.CreateCall(SyncExitFn, SyncArg)->setDoesNotThrow(); in Emit()
339 CGF.Builder.CreateCall(syncEnterFn, lock)->setDoesNotThrow(); in EmitAtSynchronizedStmt()
/external/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITTest.cpp173 Value *innerResult = Builder.CreateCall(Inner, {}); in TEST_F()
211 CallInst *Call = Builder.CreateCall(Foo, {}); in TEST_F()
250 CallInst *Call1 = Builder.CreateCall(Foo1, {}); in TEST_F()
251 CallInst *Call2 = Builder.CreateCall(Foo2, {}); in TEST_F()
DMCJITTestBase.h75 Value *ReturnCode = Builder.CreateCall(Callee, CallArgs); in insertSimpleCallFunction()
185 Value *RecursiveReturn = Builder.CreateCall(Helper, RecursiveParam);
/external/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp393 Value *ReturnAddress = IRB.CreateCall( in runOnFunction()
396 IRB.CreateCall(TsanFuncEntry, ReturnAddress); in runOnFunction()
399 IRBRet.CreateCall(TsanFuncExit, {}); in runOnFunction()
428 IRB.CreateCall(TsanVptrUpdate, in instrumentLoadOrStore()
435 IRB.CreateCall(TsanVptrLoad, in instrumentLoadOrStore()
450 IRB.CreateCall(OnAccessFunc, IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy())); in instrumentLoadOrStore()
482 IRB.CreateCall( in instrumentMemIntrinsic()
489 IRB.CreateCall( in instrumentMemIntrinsic()
568 CallInst *C = IRB.CreateCall(TsanAtomicCAS[Idx], Args); in instrumentAtomic()
DSanitizerCoverage.cpp368 IRB.CreateCall(SanCovIndirCallFunction, in InjectCoverageForIndirectCalls()
406 IRB.CreateCall(SanCovTraceSwitchFunction, in InjectTraceForSwitch()
423 IRB.CreateCall( in InjectTraceForCmp()
469 IRB.CreateCall(IsEntryBB ? SanCovTraceEnter : SanCovTraceBB, GuardP); in InjectCoverageAtBlock()
471 IRB.CreateCall(SanCovWithCheckFunction, GuardP); in InjectCoverageAtBlock()
483 IRB.CreateCall(SanCovFunction, GuardP); in InjectCoverageAtBlock()
484 IRB.CreateCall(EmptyAsm, {}); // Avoids callback merge. in InjectCoverageAtBlock()
DAddressSanitizer.cpp643 Value *DynamicAreaOffset = IRB.CreateCall(DynamicAreaOffsetFunc, {}); in unpoisonDynamicAllocasBeforeInst()
649 IRB.CreateCall(AsanAllocasUnpoisonFunc, in unpoisonDynamicAllocasBeforeInst()
836 IRB.CreateCall( in instrumentMemIntrinsic()
842 IRB.CreateCall( in instrumentMemIntrinsic()
955 IRB.CreateCall(F, Param); in instrumentPointerComparisonOrSubtraction()
1027 Call = IRB.CreateCall(AsanErrorCallbackSized[IsWrite][0], in generateCrashCode()
1030 Call = IRB.CreateCall(AsanErrorCallbackSized[IsWrite][1], in generateCrashCode()
1035 IRB.CreateCall(AsanErrorCallback[IsWrite][0][AccessSizeIndex], Addr); in generateCrashCode()
1037 Call = IRB.CreateCall(AsanErrorCallback[IsWrite][1][AccessSizeIndex], in generateCrashCode()
1044 IRB.CreateCall(EmptyAsm, {}); in generateCrashCode()
[all …]
DGCOVProfiling.cpp662 Builder.CreateCall(getIncrementIndirectCounterFunc(), in emitProfileArcs()
696 Builder.CreateCall(GCOVInit, {WriteoutF, FlushF}); in emitProfileArcs()
858 Builder.CreateCall(StartFile, in insertCounterWriteout()
865 Builder.CreateCall( in insertCounterWriteout()
878 Builder.CreateCall(EmitArcs, {Builder.getInt32(Arcs), in insertCounterWriteout()
881 Builder.CreateCall(SummaryInfo, {}); in insertCounterWriteout()
882 Builder.CreateCall(EndFile, {}); in insertCounterWriteout()
962 Builder.CreateCall(WriteoutF, {}); in insertFlush()
DInstrProfiling.cpp220 Builder.CreateCall(getOrInsertValueProfilingCall(*M), Args)); in lowerValueProfileInst()
397 IRB.CreateCall(RuntimeRegisterF, IRB.CreateBitCast(Data, VoidPtrTy)); in emitRegistration()
479 IRB.CreateCall(RegisterF, {}); in emitInitialization()
493 IRB.CreateCall(SetNameF, IRB.CreatePointerCast(ProfileName, Int8PtrTy)); in emitInitialization()
DDataFlowSanitizer.cpp862 ThenIRB.CreateCall(DFSF.DFS.DFSanNonzeroLabelFn, {}); in runOnModule()
877 return ArgTLSPtr = IRB.CreateCall(DFS.GetArgTLS, {}); in getArgTLSPtr()
887 return RetvalTLSPtr = IRB.CreateCall(DFS.GetRetvalTLS, {}); in getRetvalTLS()
990 CallInst *Call = IRB.CreateCall(DFS.DFSanCheckedUnionFn, {V1, V2}); in combineShadows()
1003 CallInst *Call = ThenIRB.CreateCall(DFS.DFSanUnionFn, {V1, V2}); in combineShadows()
1105 CallInst *FallbackCall = FallbackIRB.CreateCall( in loadShadow()
1163 CallInst *FallbackCall = IRB.CreateCall( in loadShadow()
1351 IRB.CreateCall(DFSF.DFS.DFSanSetLabelFn, in visitMemSetInst()
1376 IRB.CreateCall(I.getCalledValue(), {DestShadow, SrcShadow, LenShadow, in visitMemTransferInst()
1428 IRB.CreateCall(DFSF.DFS.DFSanUnimplementedFn, in visitCallSite()
[all …]
DMemorySanitizer.cpp646 return IRB.CreateCall(MS.MsanChainOriginFn, V); in updateOrigin()
717 IRB.CreateCall(Fn, {ConvertedShadow2, in storeOrigin()
772 IRB.CreateCall(MS.WarningFn, {}); in materializeOneCheck()
773 IRB.CreateCall(MS.EmptyAsm, {}); in materializeOneCheck()
789 IRB.CreateCall(Fn, {ConvertedShadow2, MS.TrackOrigins && Origin in materializeOneCheck()
804 IRB.CreateCall(MS.WarningFn, {}); in materializeOneCheck()
805 IRB.CreateCall(MS.EmptyAsm, {}); in materializeOneCheck()
1864 IRB.CreateCall( in visitMemMoveInst()
1878 IRB.CreateCall( in visitMemCpyInst()
1889 IRB.CreateCall( in visitMemSetInst()
[all …]
/external/llvm/lib/Target/X86/
DX86WinEHState.cpp266 Value *SP = Builder.CreateCall( in emitExceptionRegistrationRecord()
283 Value *SP = Builder.CreateCall( in emitExceptionRegistrationRecord()
292 Value *LSDA = Builder.CreateCall( in emitExceptionRegistrationRecord()
323 return Builder.CreateCall( in emitEHLSDA()
358 CallInst *Call = Builder.CreateCall(CastPersonality, Args); in generateLSDAInEAXThunk()
406 Builder.CreateCall( in addStateStores()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp337 Value *TCntY = Builder.CreateCall(ReadLocalSizeY, {}); in visitAlloca()
338 Value *TCntZ = Builder.CreateCall(ReadLocalSizeZ, {}); in visitAlloca()
339 Value *TIdX = Builder.CreateCall(ReadTIDIGX, {}); in visitAlloca()
340 Value *TIdY = Builder.CreateCall(ReadTIDIGY, {}); in visitAlloca()
341 Value *TIdZ = Builder.CreateCall(ReadTIDIGZ, {}); in visitAlloca()
/external/llvm/lib/IR/
DAutoUpgrade.cpp459 Builder.CreateCall(VPCOM, {CI->getArgOperand(0), CI->getArgOperand(1), in UpgradeIntrinsicCall()
475 Rep = Builder.CreateCall(CRC32, {Trunc0, CI->getArgOperand(1)}); in UpgradeIntrinsicCall()
716 CI->replaceAllUsesWith(Builder.CreateCall(NewFn, Args)); in UpgradeIntrinsicCall()
725 CI->replaceAllUsesWith(Builder.CreateCall( in UpgradeIntrinsicCall()
731 CI->replaceAllUsesWith(Builder.CreateCall( in UpgradeIntrinsicCall()
737 CI->replaceAllUsesWith(Builder.CreateCall(NewFn, {CI->getArgOperand(0)})); in UpgradeIntrinsicCall()
745 Builder.CreateCall(NewFn, {CI->getArgOperand(1)}, Name)); in UpgradeIntrinsicCall()
768 CallInst *NewCall = Builder.CreateCall(NewFn, {BC0, BC1}, Name); in UpgradeIntrinsicCall()
788 CallInst *NewCall = Builder.CreateCall(NewFn, Args); in UpgradeIntrinsicCall()
/external/llvm/lib/CodeGen/
DSjLjEHPrepare.cpp238 Value *LSDA = Builder.CreateCall(LSDAAddrFn, {}, "lsda_addr"); in setupFunctionContext()
415 Value *Val = Builder.CreateCall(FrameAddrFn, Builder.getInt32(0), "fp"); in setupEntryBlockAndCallSites()
422 Val = Builder.CreateCall(StackAddrFn, {}, "sp"); in setupEntryBlockAndCallSites()
426 Builder.CreateCall(BuiltinSetupDispatchFn, {}); in setupEntryBlockAndCallSites()
431 Builder.CreateCall(FuncCtxFn, FuncCtxArg); in setupEntryBlockAndCallSites()
DStackProtector.cpp356 B.CreateCall(Intrinsic::getDeclaration(M, Intrinsic::stackprotector), in CreatePrologue()
483 B.CreateCall(StackChkFail, B.CreateGlobalStringPtr(F->getName(), "SSH")); in CreateFailBB()
488 B.CreateCall(StackChkFail, {}); in CreateFailBB()
/external/llvm/lib/Transforms/IPO/
DCrossDSOCFI.cpp132 llvm::CallInst *TrapCall = IRBTrap.CreateCall(TrapFn); in buildCFICheck()
150 Value *Test = IRBTest.CreateCall( in buildCFICheck()
/external/llvm/examples/BrainF/
DBrainF.cpp102 CreateCall(memset_func, memset_params); in header()
201 builder->CreateCall(getchar_func, {}, tapereg); in readloop()
228 CreateCall(putchar_func, in readloop()
/external/llvm/unittests/IR/
DIRBuilderTest.cpp217 FCall = Builder.CreateCall(Callee, None); in TEST_F()
224 FCall = Builder.CreateCall(Callee, None); in TEST_F()
400 auto Call1 = Builder.CreateCall(Callee, None); in TEST_F()
406 auto Call2 = Builder.CreateCall(Callee, None); in TEST_F()
/external/llvm/examples/HowToUseJIT/
DHowToUseJIT.cpp110 CallInst *Add1CallRes = builder.CreateCall(Add1F, Ten); in main()
/external/llvm/examples/ExceptionDemo/
DExceptionDemo.cpp931 builder.CreateCall(printFunct, cast); in generateStringPrint()
975 builder.CreateCall(&printFunct, {&toPrint, cast}); in generateIntegerPrint()
1240 builder.CreateCall(deleteOurException, in createCatchWrappedInvokeFunction()
1434 builder.CreateCall(&nativeThrowFunct, exceptionType); in createThrowExceptionFunction()
1472 llvm::Value *exception = builder.CreateCall(createOurException, in createThrowExceptionFunction()
1476 builder.CreateCall(raiseOurException, exception); in createThrowExceptionFunction()
/external/llvm/bindings/go/llvm/
Dexecutionengine_test.go52 call_fac := builder.CreateCall(fac, call_fac_args, "calltmp")

1234