| /freebsd-head/contrib/llvm-project/clang/lib/Frontend/ |
| HD | FrontendAction.cpp | 158 CompilerInstance &CI = getCompilerInstance(); in getCurrentModule() local 159 return CI.getPreprocessor().getHeaderSearchInfo().lookupModule( in getCurrentModule() 160 CI.getLangOpts().CurrentModule, SourceLocation(), /*AllowSearch*/false); in getCurrentModule() 164 FrontendAction::CreateWrappedASTConsumer(CompilerInstance &CI, in CreateWrappedASTConsumer() argument 166 std::unique_ptr<ASTConsumer> Consumer = CreateASTConsumer(CI, InFile); in CreateWrappedASTConsumer() 172 for (const std::string &Arg : CI.getFrontendOpts().AddPluginActions) { in CreateWrappedASTConsumer() 180 CI.getDiagnostics().Report(diag::err_fe_invalid_plugin_name) << Arg; in CreateWrappedASTConsumer() 192 if (CI.hasCodeCompletionConsumer()) in CreateWrappedASTConsumer() 207 if (llvm::is_contained(CI.getFrontendOpts().AddPluginActions, in CreateWrappedASTConsumer() 218 CI, in CreateWrappedASTConsumer() [all …]
|
| HD | FrontendActions.cpp | 42 CodeCompleteConsumer *GetCodeCompletionConsumer(CompilerInstance &CI) { in GetCodeCompletionConsumer() argument 43 return CI.hasCodeCompletionConsumer() ? &CI.getCodeCompletionConsumer() in GetCodeCompletionConsumer() 47 void EnsureSemaIsCreated(CompilerInstance &CI, FrontendAction &Action) { in EnsureSemaIsCreated() argument 49 !CI.getFrontendOpts().CodeCompletionAt.FileName.empty()) in EnsureSemaIsCreated() 50 CI.createCodeCompletionConsumer(); in EnsureSemaIsCreated() 52 if (!CI.hasSema()) in EnsureSemaIsCreated() 53 CI.createSema(Action.getTranslationUnitKind(), in EnsureSemaIsCreated() 54 GetCodeCompletionConsumer(CI)); in EnsureSemaIsCreated() 63 InitOnlyAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument 86 ReadPCHAndPreprocessAction::CreateASTConsumer(CompilerInstance &CI, in CreateASTConsumer() argument [all …]
|
| HD | ASTMerge.cpp | 20 ASTMergeAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument 21 return AdaptedAction->CreateASTConsumer(CI, InFile); in CreateASTConsumer() 24 bool ASTMergeAction::BeginSourceFileAction(CompilerInstance &CI) { in BeginSourceFileAction() argument 29 AdaptedAction->setCompilerInstance(&CI); in BeginSourceFileAction() 30 return AdaptedAction->BeginSourceFileAction(CI); in BeginSourceFileAction() 34 CompilerInstance &CI = getCompilerInstance(); in ExecuteAction() local 35 CI.getDiagnostics().getClient()->BeginSourceFile( in ExecuteAction() 36 CI.getASTContext().getLangOpts()); in ExecuteAction() 37 CI.getDiagnostics().SetArgToStringFn(&FormatASTNodeDiagnosticArgument, in ExecuteAction() 38 &CI.getASTContext()); in ExecuteAction() [all …]
|
| /freebsd-head/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| HD | SimplifyLibCalls.cpp | 118 static bool callHasFloatingPointArgument(const CallInst *CI) { in callHasFloatingPointArgument() argument 119 return any_of(CI->operands(), [](const Use &OI) { in callHasFloatingPointArgument() 124 static bool callHasFP128Argument(const CallInst *CI) { in callHasFP128Argument() argument 125 return any_of(CI->operands(), [](const Use &OI) { in callHasFP128Argument() 137 static Value *convertStrToInt(CallInst *CI, StringRef &Str, Value *EndPtr, in convertStrToInt() argument 170 Type *RetTy = CI->getType(); in convertStrToInt() 227 Value *StrBeg = CI->getArgOperand(0); in convertStrToInt() 251 static bool canTransformToMemCmp(CallInst *CI, Value *Str, uint64_t Len, in canTransformToMemCmp() argument 253 if (!isOnlyUsedInComparisonWithZero(CI)) in canTransformToMemCmp() 259 if (CI->getFunction()->hasFnAttribute(Attribute::SanitizeMemory)) in canTransformToMemCmp() [all …]
|
| HD | LibCallsShrinkWrap.cpp | 57 void visitCallInst(CallInst &CI) { checkCandidate(CI); } in visitCallInst() argument 60 for (auto &CI : WorkList) { in perform() local 61 LLVM_DEBUG(dbgs() << "CDCE calls: " << CI->getCalledFunction()->getName() in perform() 63 if (perform(CI)) { in perform() 72 bool perform(CallInst *CI); 73 void checkCandidate(CallInst &CI); 74 void shrinkWrapCI(CallInst *CI, Value *Cond); 75 bool performCallDomainErrorOnly(CallInst *CI, const LibFunc &Func); 76 bool performCallErrors(CallInst *CI, const LibFunc &Func); 77 bool performCallRangeErrorOnly(CallInst *CI, const LibFunc &Func); [all …]
|
| /freebsd-head/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| HD | SimplifyLibCalls.h | 52 Value *optimizeCall(CallInst *CI, IRBuilderBase &B); 55 Value *optimizeMemCpyChk(CallInst *CI, IRBuilderBase &B); 56 Value *optimizeMemMoveChk(CallInst *CI, IRBuilderBase &B); 57 Value *optimizeMemSetChk(CallInst *CI, IRBuilderBase &B); 60 Value *optimizeStrpCpyChk(CallInst *CI, IRBuilderBase &B, LibFunc Func); 61 Value *optimizeStrpNCpyChk(CallInst *CI, IRBuilderBase &B, LibFunc Func); 62 Value *optimizeStrLenChk(CallInst *CI, IRBuilderBase &B); 63 Value *optimizeMemPCpyChk(CallInst *CI, IRBuilderBase &B); 64 Value *optimizeMemCCpyChk(CallInst *CI, IRBuilderBase &B); 65 Value *optimizeSNPrintfChk(CallInst *CI, IRBuilderBase &B); [all …]
|
| /freebsd-head/contrib/llvm-project/llvm/lib/CodeGen/ |
| HD | IntrinsicLowering.cpp | 30 static CallInst *ReplaceCallWith(const char *NewFn, CallInst *CI, in ReplaceCallWith() argument 35 Module *M = CI->getModule(); in ReplaceCallWith() 43 IRBuilder<> Builder(CI->getParent(), CI->getIterator()); in ReplaceCallWith() 46 NewCI->setName(CI->getName()); in ReplaceCallWith() 47 if (!CI->use_empty()) in ReplaceCallWith() 48 CI->replaceAllUsesWith(NewCI); in ReplaceCallWith() 202 static void ReplaceFPIntrinsicWithCall(CallInst *CI, const char *Fname, in ReplaceFPIntrinsicWithCall() argument 205 switch (CI->getArgOperand(0)->getType()->getTypeID()) { in ReplaceFPIntrinsicWithCall() 208 ReplaceCallWith(Fname, CI, CI->arg_begin(), CI->arg_end(), in ReplaceFPIntrinsicWithCall() 209 Type::getFloatTy(CI->getContext())); in ReplaceFPIntrinsicWithCall() [all …]
|
| HD | GCRootLowering.cpp | 66 void VisitCallPoint(MachineBasicBlock::iterator CI); 154 if (CallInst *CI = dyn_cast<CallInst>(I)) in CouldBecomeSafePoint() local 155 if (Function *F = CI->getCalledFunction()) in CouldBecomeSafePoint() 210 IntrinsicInst *CI = dyn_cast<IntrinsicInst>(&I); in DoLowering() local 211 if (!CI) in DoLowering() 214 Function *F = CI->getCalledFunction(); in DoLowering() 219 Value *St = new StoreInst(CI->getArgOperand(0), CI->getArgOperand(2), in DoLowering() 220 CI->getIterator()); in DoLowering() 221 CI->replaceAllUsesWith(St); in DoLowering() 222 CI->eraseFromParent(); in DoLowering() [all …]
|
| /freebsd-head/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| HD | FrontendActions.cpp | 41 HTMLPrintAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument 43 CI.createDefaultOutputFile(false, InFile)) in CreateASTConsumer() 44 return CreateHTMLPrinter(std::move(OS), CI.getPreprocessor()); in CreateASTConsumer() 52 FixItAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument 96 bool FixItAction::BeginSourceFileAction(CompilerInstance &CI) { in BeginSourceFileAction() argument 105 Rewriter.reset(new FixItRewriter(CI.getDiagnostics(), CI.getSourceManager(), in BeginSourceFileAction() 106 CI.getLangOpts(), FixItOpts.get())); in BeginSourceFileAction() 115 bool FixItRecompile::BeginInvocation(CompilerInstance &CI) { in BeginInvocation() argument 120 const FrontendOptions &FEOpts = CI.getFrontendOpts(); in BeginInvocation() 122 if (FixAction->BeginSourceFile(CI, FEOpts.Inputs[0])) { in BeginInvocation() [all …]
|
| /freebsd-head/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| HD | SILoadStoreOptimizer.cpp | 125 bool hasSameBaseAddress(const CombineInfo &CI) { in hasSameBaseAddress() 126 if (NumAddresses != CI.NumAddresses) in hasSameBaseAddress() 129 const MachineInstr &MI = *CI.I; in hasSameBaseAddress() 212 static bool dmasksCanBeCombined(const CombineInfo &CI, 215 static bool offsetsCanBeCombined(CombineInfo &CI, const GCNSubtarget &STI, 217 static bool widthsFit(const GCNSubtarget &STI, const CombineInfo &CI, 219 unsigned getNewOpcode(const CombineInfo &CI, const CombineInfo &Paired); 220 static std::pair<unsigned, unsigned> getSubRegIdxs(const CombineInfo &CI, 223 getTargetRegisterClass(const CombineInfo &CI, 227 CombineInfo *checkAndPrepareMerge(CombineInfo &CI, CombineInfo &Paired); [all …]
|
| HD | SIInsertHardClauses.cpp | 177 bool emitClause(const ClauseInfo &CI, const SIInstrInfo *SII) { in emitClause() argument 178 if (CI.First == CI.Last) in emitClause() 180 assert(CI.Length <= ST->maxHardClauseLength() && in emitClause() 183 auto &MBB = *CI.First->getParent(); in emitClause() 185 BuildMI(MBB, *CI.First, DebugLoc(), SII->get(AMDGPU::S_CLAUSE)) in emitClause() 186 .addImm(CI.Length - 1); in emitClause() 188 std::next(CI.Last->getIterator())); in emitClause() 205 ClauseInfo CI; in runOnMachineFunction() local 222 if (CI.Length == ST->maxHardClauseLength() || in runOnMachineFunction() 223 (CI.Length && Type != HARDCLAUSE_INTERNAL && in runOnMachineFunction() [all …]
|
| HD | AMDGPULibCalls.cpp | 73 bool TDOFold(CallInst *CI, const FuncInfo &FInfo); 102 bool fold_read_write_pipe(CallInst *CI, IRBuilder<> &B, 110 bool shouldReplaceLibcallWithIntrinsic(const CallInst *CI, 114 void replaceLibCallWithSimpleIntrinsic(IRBuilder<> &B, CallInst *CI, 117 bool tryReplaceLibcallWithSimpleIntrinsic(IRBuilder<> &B, CallInst *CI, 141 bool fold(CallInst *CI); 147 bool useNative(CallInst *CI); 524 bool AMDGPULibCalls::fold_read_write_pipe(CallInst *CI, IRBuilder<> &B, in fold_read_write_pipe() argument 526 auto *Callee = CI->getCalledFunction(); in fold_read_write_pipe() 533 auto NumArg = CI->arg_size(); in fold_read_write_pipe() [all …]
|
| /freebsd-head/contrib/llvm-project/clang/lib/ExtractAPI/ |
| HD | ExtractAPIConsumer.cpp | 60 std::optional<std::string> getRelativeIncludeName(const CompilerInstance &CI, in getRelativeIncludeName() argument 63 assert(CI.hasFileManager() && in getRelativeIncludeName() 67 const auto &FS = CI.getVirtualFileSystem(); in getRelativeIncludeName() 125 for (const auto &Entry : CI.getHeaderSearchOpts().UserEntries) { in getRelativeIncludeName() 130 if (auto EntryFile = CI.getFileManager().getOptionalFileRef(Entry.Path)) { in getRelativeIncludeName() 131 if (auto HMap = HeaderMap::Create(*EntryFile, CI.getFileManager())) { in getRelativeIncludeName() 172 std::optional<std::string> getRelativeIncludeName(const CompilerInstance &CI, in getRelativeIncludeName() argument 175 return getRelativeIncludeName(CI, FE.getNameAsRequested(), IsQuoted); in getRelativeIncludeName() 182 auto &SM = CI.getSourceManager(); in operator ()() 200 if (auto IncludeName = getRelativeIncludeName(CI, *File, &IsQuoted)) in operator ()() [all …]
|
| /freebsd-head/contrib/llvm-project/llvm/lib/IR/ |
| HD | AutoUpgrade.cpp | 1653 static Value *upgradeX86VPERMT2Intrinsics(IRBuilder<> &Builder, CallBase &CI, in upgradeX86VPERMT2Intrinsics() argument 1655 Type *Ty = CI.getType(); in upgradeX86VPERMT2Intrinsics() 1699 Value *Args[] = { CI.getArgOperand(0) , CI.getArgOperand(1), in upgradeX86VPERMT2Intrinsics() 1700 CI.getArgOperand(2) }; in upgradeX86VPERMT2Intrinsics() 1706 Value *V = Builder.CreateCall(Intrinsic::getDeclaration(CI.getModule(), IID), in upgradeX86VPERMT2Intrinsics() 1709 : Builder.CreateBitCast(CI.getArgOperand(1), in upgradeX86VPERMT2Intrinsics() 1711 return emitX86Select(Builder, CI.getArgOperand(3), V, PassThru); in upgradeX86VPERMT2Intrinsics() 1714 static Value *upgradeX86BinaryIntrinsics(IRBuilder<> &Builder, CallBase &CI, in upgradeX86BinaryIntrinsics() argument 1716 Type *Ty = CI.getType(); in upgradeX86BinaryIntrinsics() 1717 Value *Op0 = CI.getOperand(0); in upgradeX86BinaryIntrinsics() [all …]
|
| /freebsd-head/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| HD | ScalarizeMaskedMemIntrin.cpp | 72 static bool optimizeCallInst(CallInst *CI, bool &ModifiedDT, 143 static void scalarizeMaskedLoad(const DataLayout &DL, CallInst *CI, in scalarizeMaskedLoad() argument 145 Value *Ptr = CI->getArgOperand(0); in scalarizeMaskedLoad() 146 Value *Alignment = CI->getArgOperand(1); in scalarizeMaskedLoad() 147 Value *Mask = CI->getArgOperand(2); in scalarizeMaskedLoad() 148 Value *Src0 = CI->getArgOperand(3); in scalarizeMaskedLoad() 151 VectorType *VecType = cast<FixedVectorType>(CI->getType()); in scalarizeMaskedLoad() 155 IRBuilder<> Builder(CI->getContext()); in scalarizeMaskedLoad() 156 Instruction *InsertPt = CI; in scalarizeMaskedLoad() 157 BasicBlock *IfBlock = CI->getParent(); in scalarizeMaskedLoad() [all …]
|
| HD | TailRecursionElimination.cpp | 238 CallInst *CI = dyn_cast<CallInst>(&I); in markTails() local 242 if (!CI || CI->isTailCall() || isa<DbgInfoIntrinsic>(&I) || in markTails() 248 bool IsNoTail = CI->isNoTailCall() || in markTails() 249 CI->hasOperandBundlesOtherThan( in markTails() 253 if (!IsNoTail && CI->doesNotAccessMemory()) { in markTails() 262 for (auto &Arg : CI->args()) { in markTails() 274 return OptimizationRemark(DEBUG_TYPE, "tailcall-readnone", CI) in markTails() 277 CI->setTailCall(); in markTails() 283 if (!IsNoTail && Escaped == UNESCAPED && !Tracker.AllocaUsers.count(CI)) in markTails() 284 DeferredTails.push_back(CI); in markTails() [all …]
|
| HD | LowerExpectIntrinsic.cpp | 56 getBranchWeight(Intrinsic::ID IntrinsicID, CallInst *CI, int BranchCount) { in getBranchWeight() argument 63 assert(CI->getNumOperands() >= 3 && in getBranchWeight() 65 auto *Confidence = cast<ConstantFP>(CI->getArgOperand(2)); in getBranchWeight() 77 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect() local 78 if (!CI) in handleSwitchExpect() 81 Function *Fn = CI->getCalledFunction(); in handleSwitchExpect() 86 Value *ArgValue = CI->getArgOperand(0); in handleSwitchExpect() 87 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect() 95 getBranchWeight(Fn->getIntrinsicID(), CI, n + 1); in handleSwitchExpect() 216 ConstantInt *CI = dyn_cast<ConstantInt>(PhiOpnd); in handlePhiDef() local [all …]
|
| /freebsd-head/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| HD | PPCGenScalarMASSEntries.cpp | 54 bool isCandidateSafeToLower(const CallInst &CI) const; 55 bool isFiniteCallSafe(const CallInst &CI) const; 56 bool createScalarMASSCall(StringRef MASSEntry, CallInst &CI, 64 bool PPCGenScalarMASSEntries::isCandidateSafeToLower(const CallInst &CI) const { in isCandidateSafeToLower() 66 if (!isa<FPMathOperator>(CI)) in isCandidateSafeToLower() 69 return CI.hasApproxFunc(); in isCandidateSafeToLower() 74 bool PPCGenScalarMASSEntries::isFiniteCallSafe(const CallInst &CI) const { in isFiniteCallSafe() 76 if (!isa<FPMathOperator>(CI)) in isFiniteCallSafe() 81 return CI.hasNoNaNs() && CI.hasNoInfs() && CI.hasNoSignedZeros(); in isFiniteCallSafe() 88 CallInst &CI, in createScalarMASSCall() argument [all …]
|
| HD | PPCLowerMASSVEntries.cpp | 57 bool handlePowSpecialCases(CallInst *CI, Function &Func, Module &M); 58 bool lowerMASSVCall(CallInst *CI, Function &Func, Module &M, 107 bool PPCLowerMASSVEntries::handlePowSpecialCases(CallInst *CI, Function &Func, in handlePowSpecialCases() argument 112 if (Constant *Exp = dyn_cast<Constant>(CI->getArgOperand(1))) in handlePowSpecialCases() 116 if (!CI->hasNoInfs() || !CI->hasApproxFunc()) in handlePowSpecialCases() 122 if (CFP->isExactlyValue(0.25) && !CI->hasNoSignedZeros()) in handlePowSpecialCases() 125 CI->setCalledFunction( in handlePowSpecialCases() 126 Intrinsic::getDeclaration(&M, Intrinsic::pow, CI->getType())); in handlePowSpecialCases() 136 bool PPCLowerMASSVEntries::lowerMASSVCall(CallInst *CI, Function &Func, in lowerMASSVCall() argument 139 if (CI->use_empty()) in lowerMASSVCall() [all …]
|
| /freebsd-head/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/ |
| HD | AnalyzerHelpFlags.cpp | 28 void ento::printCheckerHelp(raw_ostream &out, CompilerInstance &CI) { in printCheckerHelp() argument 33 CI.getAnalyzerOpts(), CI.getLangOpts(), CI.getDiagnostics(), in printCheckerHelp() 34 CI.getFrontendOpts().Plugins); in printCheckerHelp() 37 CI.getAnalyzerOpts(), out); in printCheckerHelp() 40 void ento::printEnabledCheckerList(raw_ostream &out, CompilerInstance &CI) { in printEnabledCheckerList() argument 44 CI.getAnalyzerOpts(), CI.getLangOpts(), CI.getDiagnostics(), in printEnabledCheckerList() 45 CI.getFrontendOpts().Plugins); in printEnabledCheckerList() 50 void ento::printCheckerConfigList(raw_ostream &out, CompilerInstance &CI) { in printCheckerConfigList() argument 53 CI.getAnalyzerOpts(), CI.getLangOpts(), CI.getDiagnostics(), in printCheckerConfigList() 54 CI.getFrontendOpts().Plugins); in printCheckerConfigList() [all …]
|
| /freebsd-head/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/ |
| HD | ModuleDepCollector.cpp | 27 if (const auto *CI = std::get_if<CowCompilerInvocation>(&BuildInfo)) in getBuildArguments() local 28 BuildInfo = CI->getCC1CommandLine(); in getBuildArguments() 132 void ModuleDepCollector::addOutputPaths(CowCompilerInvocation &CI, in addOutputPaths() argument 134 CI.getMutFrontendOpts().OutputFile = in addOutputPaths() 136 if (!CI.getDiagnosticOpts().DiagnosticSerializationFile.empty()) in addOutputPaths() 137 CI.getMutDiagnosticOpts().DiagnosticSerializationFile = in addOutputPaths() 140 if (!CI.getDependencyOutputOpts().OutputFile.empty()) { in addOutputPaths() 141 CI.getMutDependencyOutputOpts().OutputFile = Controller.lookupModuleOutput( in addOutputPaths() 143 CI.getMutDependencyOutputOpts().Targets = in addOutputPaths() 147 if (!CI.getDependencyOutputOpts().OutputFile.empty() && in addOutputPaths() [all …]
|
| /freebsd-head/contrib/llvm-project/clang/lib/ARCMigrate/ |
| HD | ARCMTActions.cpp | 16 bool CheckAction::BeginInvocation(CompilerInstance &CI) { in BeginInvocation() argument 17 if (arcmt::checkForManualIssues(CI.getInvocation(), getCurrentInput(), in BeginInvocation() 18 CI.getPCHContainerOperations(), in BeginInvocation() 19 CI.getDiagnostics().getClient())) in BeginInvocation() 23 CI.getDiagnostics().setIgnoreAllWarnings(true); in BeginInvocation() 30 bool ModifyAction::BeginInvocation(CompilerInstance &CI) { in BeginInvocation() argument 31 return !arcmt::applyTransformations(CI.getInvocation(), getCurrentInput(), in BeginInvocation() 32 CI.getPCHContainerOperations(), in BeginInvocation() 33 CI.getDiagnostics().getClient()); in BeginInvocation() 39 bool MigrateAction::BeginInvocation(CompilerInstance &CI) { in BeginInvocation() argument [all …]
|
| /freebsd-head/contrib/llvm-project/clang/include/clang/Frontend/ |
| HD | FrontendActions.h | 26 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI, 39 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI, 47 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI, in CreateASTConsumer() argument 64 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI, 70 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI, 76 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI, 82 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI, 88 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI, 104 static bool ComputeASTConsumerArguments(CompilerInstance &CI, 110 CreateOutputFile(CompilerInstance &CI, StringRef InFile, [all …]
|
| /freebsd-head/contrib/llvm-project/llvm/lib/Analysis/ |
| HD | TypeMetadataUtils.cpp | 27 const CallInst *CI, DominatorTree &DT) { in findCallsAtConstantOffset() argument 36 if (!DT.dominates(CI, User)) in findCallsAtConstantOffset() 39 findCallsAtConstantOffset(DevirtCalls, HasNonCallUses, User, Offset, CI, in findCallsAtConstantOffset() 41 } else if (auto *CI = dyn_cast<CallInst>(User)) { in findCallsAtConstantOffset() local 42 DevirtCalls.push_back({Offset, *CI}); in findCallsAtConstantOffset() 54 int64_t Offset, const CallInst *CI, DominatorTree &DT) { in findLoadCallsAtConstantOffset() argument 58 findLoadCallsAtConstantOffset(M, DevirtCalls, User, Offset, CI, DT); in findLoadCallsAtConstantOffset() 60 findCallsAtConstantOffset(DevirtCalls, nullptr, User, Offset, CI, DT); in findLoadCallsAtConstantOffset() 68 CI, DT); in findLoadCallsAtConstantOffset() 74 Offset + LoadOffset->getSExtValue(), CI, in findLoadCallsAtConstantOffset() [all …]
|
| /freebsd-head/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/ |
| HD | ObjCARC.h | 39 static inline void EraseInstruction(Instruction *CI) { in EraseInstruction() argument 40 Value *OldArg = cast<CallInst>(CI)->getArgOperand(0); in EraseInstruction() 42 bool Unused = CI->use_empty(); in EraseInstruction() 46 assert((IsForwarding(GetBasicARCInstKind(CI)) || in EraseInstruction() 47 (IsNoopOnNull(GetBasicARCInstKind(CI)) && in EraseInstruction() 50 CI->replaceAllUsesWith(OldArg); in EraseInstruction() 53 CI->eraseFromParent(); in EraseInstruction() 126 if (auto *CI = dyn_cast<CallInst>(I)) in contains() local 127 return RVCalls.count(CI); in contains() 132 void eraseInst(CallInst *CI) { in eraseInst() argument [all …]
|