| /src/external/apache2/llvm/dist/llvm/lib/Target/BPF/ |
| BPFCheckAndAdjustIR.cpp | 107 auto *Call = dyn_cast<CallInst>(&I); 108 if (!Call) 110 auto *GV = dyn_cast<GlobalValue>(Call->getCalledOperand()); 116 Value *Arg = Call->getArgOperand(1); 117 Call->replaceAllUsesWith(Arg); 118 ToBeDeleted = Call;
|
| BPFPreserveDIType.cpp | 50 auto *Call = dyn_cast<CallInst>(&I); 51 if (!Call) 54 const auto *GV = dyn_cast<GlobalValue>(Call->getCalledOperand()); 59 if (!Call->getMetadata(LLVMContext::MD_preserve_access_index)) 62 PreserveDITypeCalls.push_back(Call); 72 for (auto Call : PreserveDITypeCalls) { 73 const ConstantInt *Flag = dyn_cast<ConstantInt>(Call->getArgOperand(1)); 80 MDNode *MD = Call->getMetadata(LLVMContext::MD_preserve_access_index); 101 BasicBlock *BB = Call->getParent(); 112 new LoadInst(Type::getInt64Ty(BB->getContext()), GV, "", Call); [all...] |
| /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/ |
| ReturnValueChecker.cpp | 10 // boolean return value. It ensures the return value of each function call. 28 // It sets the predefined invariant ('CDM') if the current call not break it. 29 void checkPostCall(const CallEvent &Call, CheckerContext &C) const; 35 // The pairs are in the following form: {{{class, call}}, return value} 60 static std::string getName(const CallEvent &Call) { 62 if (const auto *MD = dyn_cast<CXXMethodDecl>(Call.getDecl())) 66 Name += Call.getCalleeIdentifier()->getName(); 84 void ReturnValueChecker::checkPostCall(const CallEvent &Call, 86 const bool *RawExpectedValue = CDM.lookup(Call); 90 SVal ReturnV = Call.getReturnValue() [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/ |
| NVVMIntrRange.cpp | 60 // passed-in call instruction. 62 // This call already has range metadata, nothing to do. 90 CallInst *Call = dyn_cast<CallInst>(&I); 91 if (!Call) 94 if (Function *Callee = Call->getCalledFunction()) { 98 Changed |= addRangeMetadata(0, MaxBlockSize.x, Call); 101 Changed |= addRangeMetadata(0, MaxBlockSize.y, Call); 104 Changed |= addRangeMetadata(0, MaxBlockSize.z, Call); 109 Changed |= addRangeMetadata(1, MaxBlockSize.x+1, Call); 112 Changed |= addRangeMetadata(1, MaxBlockSize.y+1, Call); [all...] |
| NVVMReflect.cpp | 17 // If we see an unknown string, we replace its call with 0. 90 // Go through the calls in this function. Each call to __nvvm_reflect or 100 // %ptr = tail call i8* @llvm.nvvm.ptr.constant.to.gen.p0i8.p4i8 103 // %reflect = tail call i32 @__nvvm_reflect(i8* %ptr) 110 // %reflect = call i32 @__nvvm_reflect(i8* addrspacecast 117 CallInst *Call = dyn_cast<CallInst>(&I); 118 if (!Call) 120 Function *Callee = Call->getCalledFunction(); 126 assert(Call->getNumOperands() == 2 && 131 const Value *Str = Call->getArgOperand(0) [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Target/PowerPC/ |
| PPCTLSDynamicCall.cpp | 1 //===---------- PPCTLSDynamicCall.cpp - TLS Dynamic Call Fixup ------------===// 13 // a call instruction, so its target register is constrained to be GPR3. 36 #define DEBUG_TYPE "ppc-tls-dynamic-call" 80 LLVM_DEBUG(dbgs() << "TLS Dynamic Call Fixup:\n " << MI); 167 MachineInstr *Call = 170 Call->addOperand(MI.getOperand(2)); 172 Call->addOperand(MI.getOperand(3)); 231 "PowerPC TLS Dynamic Call Fixup", false, false) 235 "PowerPC TLS Dynamic Call Fixup", false, false)
|
| /src/external/apache2/llvm/dist/llvm/lib/Transforms/ObjCARC/ |
| DependencyAnalysis.cpp | 48 const auto *Call = cast<CallBase>(Inst); 50 // See if AliasAnalysis can help us with the call. 51 FunctionModRefBehavior MRB = PA.getAA()->getModRefBehavior(Call); 55 for (const Value *Op : Call->args()) { 82 // ARCInstKind::Call operations (as opposed to 84 if (Class == ARCInstKind::Call)
|
| ObjCARC.cpp | 87 // We don't have to call insertRVCallWithColors since DestBB is the normal 111 auto *Call = 113 RVCalls[Call] = AnnotatedCall; 114 return Call;
|
| ObjCARCContract.cpp | 127 const auto *Call = dyn_cast<CallBase>(GetArgRCIdentityRoot(Retain)); 128 if (!Call) 130 if (Call->getParent() != Retain->getParent()) 133 // Check that the call is next to the retain. 134 BasicBlock::const_iterator I = ++Call->getIterator(); 159 /// Merge an autorelease with a retain into a fused call. 321 /// tail call i8* @objc_retain(i8* %new_value) (2) 322 /// tail call void @objc_release(i8* %old_value) (3) 395 // whether there are any escaping allocas. Remember this call, so that 435 // marker to do the return value optimization and the retainRV/claimRV call [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/ |
| PartiallyInlineLibCalls.cpp | 33 static bool optimizeSQRT(CallInst *Call, Function *CalledFunc, 37 // instruction if the call has already been marked read-only. 38 if (Call->onlyReadsMemory()) 52 // v1 = sqrt(src) # library call. 56 Type *Ty = Call->getType(); 57 IRBuilder<> Builder(Call->getNextNode()); 59 // Split CurrBB right after the call, create a 'then' block (that branches 62 Builder.getTrue(), Call->getNextNode(), /*Unreachable=*/false, 74 Call->replaceAllUsesWith(Phi); 78 LibCallBB->setName("call.sqrt") [all...] |
| AlignmentFromAssumptions.cpp | 336 CallInst *Call = cast<CallInst>(AssumeVH); 337 for (unsigned Idx = 0; Idx < Call->getNumOperandBundles(); Idx++) 338 Changed |= processAssumption(Call, Idx);
|
| /src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/ |
| EntryExitInstrumenter.cpp | 38 CallInst *Call = CallInst::Create(Fn, "", InsertionPt); 39 Call->setDebugLoc(DL); 58 CallInst *Call = 60 Call->setDebugLoc(DL); 64 // We only know how to call a fixed set of instrumentation functions, because 101 // If T is preceded by a musttail call, that's the real terminator.
|
| /src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/ |
| ObjCARCInstKind.h | 50 CallOrUser, ///< could call objc_release and/or "use" pointers 51 Call, ///< could call objc_release 99 /// Determine which objc runtime call instruction class V belongs to.
|
| /src/external/apache2/llvm/dist/llvm/include/llvm/IR/ |
| MatrixBuilder.h | 82 CallInst *Call = B.CreateCall(TheFn->getFunctionType(), TheFn, Ops, Name); 84 Attribute::getWithAlignment(Call->getContext(), Alignment); 85 Call->addAttribute(1, AlignAttr); 86 return Call; 105 CallInst *Call = B.CreateCall(TheFn->getFunctionType(), TheFn, Ops, Name); 107 Attribute::getWithAlignment(Call->getContext(), Alignment); 108 Call->addAttribute(2, AlignAttr); 109 return Call; 112 /// Create a llvm.matrix.transpose call, transposing \p Matrix with \p Rows 128 /// Create a llvm.matrix.multiply call, multiplying matrixes \p LHS and \ [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
| CaptureTracking.cpp | 11 // pointer that outlives the call. Not being captured means, more or less, that 241 case Instruction::Call: 243 auto *Call = cast<CallBase>(I); 247 if (Call->onlyReadsMemory() && Call->doesNotThrow() && 248 Call->getType()->isVoidTy()) 256 if (isIntrinsicReturningPointerAliasingArgumentWithoutCapturing(Call, 258 if (!AddUses(Call)) 265 if (auto *MI = dyn_cast<MemIntrinsic>(Call)) 277 if (Call->isDataOperand(U) & [all...] |
| AliasAnalysis.cpp | 178 ModRefInfo AAResults::getArgModRefInfo(const CallBase *Call, unsigned ArgIdx) { 182 Result = intersectModRef(Result, AA->getArgModRefInfo(Call, ArgIdx)); 207 // Otherwise, check if the call modifies or references the 209 // is that if the call references what this instruction 219 ModRefInfo AAResults::getModRefInfo(const CallBase *Call, 222 return getModRefInfo(Call, Loc, AAQIP); 225 ModRefInfo AAResults::getModRefInfo(const CallBase *Call, 231 Result = intersectModRef(Result, AA->getModRefInfo(Call, Loc, AAQI)); 240 auto MRB = getModRefBehavior(Call); 253 for (auto AI = Call->arg_begin(), AE = Call->arg_end(); AI != AE; ++AI) [all...] |
| InlineAdvisor.cpp | 204 // Try to detect the case where the current inlining candidate caller (call 206 // elsewhere, and the current candidate callee (call it C) is large enough 232 // If this isn't a call to Caller (it could be some other sort 250 // this callsite. We subtract off the penalty for the call instruction, 327 Instruction *Call = &CB; 333 << ", Call: " << CB << "\n"); 339 << ", Call: " << CB << "\n"); 342 return OptimizationRemarkMissed(DEBUG_TYPE, "NeverInline", Call) 349 return OptimizationRemarkMissed(DEBUG_TYPE, "TooCostly", Call) 367 Call) [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Analysis/ |
| CalledOnceCheck.cpp | 87 // to report double call warnings even if these two calls are not guaranteed 96 // violations take place, we prefer to report ONLY double call. It's always 100 // a double call, we need another kind: `Reported`. 103 // developers only use tracked parameters to call them, in the real world, 110 // Some of the paths in the analyzed functions might end with a call 172 assert(!seenAnyCalls(K) && "Can't initialize status without a call"); 174 ParameterStatus(Kind K, const Expr *Call) : StatusKind(K), Call(Call) { 175 assert(seenAnyCalls(K) && "This kind is not supposed to have a call"); [all...] |
| /src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/ |
| FastISel.h | 80 // that perform tail call conversions. 89 MachineInstr *Call = nullptr; 105 const CallBase &Call) { 109 IsInReg = Call.hasRetAttr(Attribute::InReg); 110 DoesNotReturn = Call.doesNotReturn(); 112 IsReturnValueUsed = !Call.use_empty(); 113 RetSExt = Call.hasRetAttr(Attribute::SExt); 114 RetZExt = Call.hasRetAttr(Attribute::ZExt); 116 CallConv = Call.getCallingConv(); 120 CB = &Call; [all...] |
| /src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/IPO/ |
| IROutliner.h | 16 // function and called from the extracted call site. 35 // call void outlined_ir_function(i32 %a, i32 %b) 36 // call void outlined_ir_function(i32 %b, i32 %a) 69 /// potentially become invalidated if the only new instruction is a call. 90 /// to a given constant, which is used when creating the arguments to the call 103 /// The call site of the extracted region. 104 CallInst *Call = nullptr;
|
| /src/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
| StackProtector.cpp | 192 case Instruction::Call: { 251 /// Search for the first call to the llvm.stackprotector intrinsic and return it 267 /// call alloca with a either a variable size or a size >= SSPBufferSize, 270 /// strong heuristic will add a guard variables to functions that call alloca 310 << " due to a call to alloca or use of a variable length " 315 // A call to alloca with size >= SSPBufferSize requires 329 // A call to alloca with a variable size requires protectors. 410 /// call void @llvm.stackprotector(StackGuard, StackGuardSlot) 461 // itself via a previous call to CreatePrologue(). 464 assert(SPCall && "Call to llvm.stackprotector is missing") [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/ |
| WebAssemblyFixFunctionBitcasts.cpp | 96 // - Call with more arguments than needed: arguments are dropped 97 // - Call with fewer arguments than needed: arguments are filled in with undef 176 CallInst *Call = CallInst::Create(F, Args, "", BB); 187 ReturnInst::Create(M->getContext(), Call, BB); 191 CastInst::CreateBitOrPointerCast(Call, RtnType, "cast"); 253 // "int main(int argc, char *argv[])", create an artificial call with it 255 // the C runtime can call it.
|
| /src/external/apache2/llvm/dist/llvm/lib/Target/X86/ |
| X86CallFrameOptimization.cpp | 1 //===----- X86CallFrameOptimization.cpp - Optimize x86 call sequences -----===// 9 // This file defines a pass that optimizes call sequences on x86. 55 NoX86CFOpt("no-x86-call-frame-opt", 56 cl::desc("Avoid optimizing x86 call frames for size"), 70 // Information we know about a particular call site 77 // Actual call instruction 78 MachineInstr *Call = nullptr; 89 // True if this call site has no stack parameters 92 // True if this call site can use push instructions 117 StringRef getPassName() const override { return "X86 Optimize Call Frame"; [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/ |
| SampleProfileProbe.cpp | 279 uint32_t SampleProfileProber::getCallsiteId(const Instruction *Call) const { 280 auto Iter = CallProbeIds.find(const_cast<Instruction *>(Call)); 298 "Expecting pseudo probe or call instructions"); 346 // their probe ID can be used as an call site identifier to represent a 349 auto *Call = I.first; 351 uint32_t Type = cast<CallBase>(Call)->getCalledFunction() 354 AssignDebugLoc(Call); 360 if (auto DIL = Call->getDebugLoc()) { 362 Call->setDebugLoc(DIL);
|
| /src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Core/ |
| Checker.h | 288 static void _checkNewAllocator(void *checker, const CXXAllocatorCall &Call, 290 ((const CHECKER *)checker)->checkNewAllocator(Call, C); 341 const CallEvent *Call) { 344 LCtx, Call); 362 const CallEvent *Call, 369 Call, 386 Call, 405 const CallEvent *Call, 426 Call, 475 class Call { [all...] |