| /freebsd/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | FrontendAction.cpp | 292 CompilerInstance &CI = getCompilerInstance(); in getCurrentModule() local 293 return CI.getPreprocessor().getHeaderSearchInfo().lookupModule( in getCurrentModule() 294 CI.getLangOpts().CurrentModule, SourceLocation(), /*AllowSearch*/false); in getCurrentModule() 298 FrontendAction::CreateWrappedASTConsumer(CompilerInstance &CI, in CreateWrappedASTConsumer() argument 300 std::unique_ptr<ASTConsumer> Consumer = CreateASTConsumer(CI, InFile); in CreateWrappedASTConsumer() 306 CI.getFrontendOpts().DumpMinimizationHintsPath; in CreateWrappedASTConsumer() 314 CI.getSourceManager(), std::move(FileStream))); in CreateWrappedASTConsumer() 325 for (const std::string &Arg : CI.getFrontendOpts().AddPluginActions) { in CreateWrappedASTConsumer() 333 CI.getDiagnostics().Report(diag::err_fe_invalid_plugin_name) << Arg; in CreateWrappedASTConsumer() 341 if (CI.hasCodeCompletionConsumer()) in CreateWrappedASTConsumer() [all …]
|
| H A D | 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 …]
|
| H A D | 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/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyLibCalls.cpp | 121 static bool callHasFloatingPointArgument(const CallInst *CI) { in callHasFloatingPointArgument() argument 122 return any_of(CI->operands(), [](const Use &OI) { in callHasFloatingPointArgument() 127 static bool callHasFP128Argument(const CallInst *CI) { in callHasFP128Argument() argument 128 return any_of(CI->operands(), [](const Use &OI) { in callHasFP128Argument() 140 static Value *convertStrToInt(CallInst *CI, StringRef &Str, Value *EndPtr, in convertStrToInt() argument 173 Type *RetTy = CI->getType(); in convertStrToInt() 230 Value *StrBeg = CI->getArgOperand(0); in convertStrToInt() 254 static bool canTransformToMemCmp(CallInst *CI, Value *Str, uint64_t Len, in canTransformToMemCmp() argument 256 if (!isOnlyUsedInComparisonWithZero(CI)) in canTransformToMemCmp() 262 if (CI->getFunction()->hasFnAttribute(Attribute::SanitizeMemory)) in canTransformToMemCmp() [all …]
|
| H A D | 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/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | SimplifyLibCalls.h | 54 Value *optimizeCall(CallInst *CI, IRBuilderBase &B); 57 Value *optimizeMemCpyChk(CallInst *CI, IRBuilderBase &B); 58 Value *optimizeMemMoveChk(CallInst *CI, IRBuilderBase &B); 59 Value *optimizeMemSetChk(CallInst *CI, IRBuilderBase &B); 62 Value *optimizeStrpCpyChk(CallInst *CI, IRBuilderBase &B, LibFunc Func); 63 Value *optimizeStrpNCpyChk(CallInst *CI, IRBuilderBase &B, LibFunc Func); 64 Value *optimizeStrLenChk(CallInst *CI, IRBuilderBase &B); 65 Value *optimizeMemPCpyChk(CallInst *CI, IRBuilderBase &B); 66 Value *optimizeMemCCpyChk(CallInst *CI, IRBuilderBase &B); 67 Value *optimizeSNPrintfChk(CallInst *CI, IRBuilderBase &B); [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | 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 …]
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | FrontendActions.cpp | 40 HTMLPrintAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument 42 CI.createDefaultOutputFile(false, InFile)) in CreateASTConsumer() 43 return CreateHTMLPrinter(std::move(OS), CI.getPreprocessor()); in CreateASTConsumer() 51 FixItAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument 95 bool FixItAction::BeginSourceFileAction(CompilerInstance &CI) { in BeginSourceFileAction() argument 104 Rewriter.reset(new FixItRewriter(CI.getDiagnostics(), CI.getSourceManager(), in BeginSourceFileAction() 105 CI.getLangOpts(), FixItOpts.get())); in BeginSourceFileAction() 114 bool FixItRecompile::BeginInvocation(CompilerInstance &CI) { in BeginInvocation() argument 119 const FrontendOptions &FEOpts = CI.getFrontendOpts(); in BeginInvocation() 121 if (FixAction->BeginSourceFile(CI, FEOpts.Inputs[0])) { in BeginInvocation() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/ExtractAPI/ |
| H A D | ExtractAPIConsumer.cpp | 59 std::optional<std::string> getRelativeIncludeName(const CompilerInstance &CI, in getRelativeIncludeName() argument 62 assert(CI.hasFileManager() && in getRelativeIncludeName() 66 const auto &FS = CI.getVirtualFileSystem(); in getRelativeIncludeName() 124 for (const auto &Entry : CI.getHeaderSearchOpts().UserEntries) { in getRelativeIncludeName() 129 if (auto EntryFile = CI.getFileManager().getOptionalFileRef(Entry.Path)) { in getRelativeIncludeName() 130 if (auto HMap = HeaderMap::Create(*EntryFile, CI.getFileManager())) { in getRelativeIncludeName() 171 std::optional<std::string> getRelativeIncludeName(const CompilerInstance &CI, in getRelativeIncludeName() argument 174 return getRelativeIncludeName(CI, FE.getNameAsRequested(), IsQuoted); in getRelativeIncludeName() 181 auto &SM = CI.getSourceManager(); in operator ()() 199 if (auto IncludeName = getRelativeIncludeName(CI, *File, &IsQuoted)) in operator ()() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | SILoadStoreOptimizer.cpp | 126 bool hasSameBaseAddress(const CombineInfo &CI) { in hasSameBaseAddress() 127 if (NumAddresses != CI.NumAddresses) in hasSameBaseAddress() 130 const MachineInstr &MI = *CI.I; in hasSameBaseAddress() 213 static bool dmasksCanBeCombined(const CombineInfo &CI, 216 static bool offsetsCanBeCombined(CombineInfo &CI, const GCNSubtarget &STI, 218 static bool widthsFit(const GCNSubtarget &STI, const CombineInfo &CI, 220 unsigned getNewOpcode(const CombineInfo &CI, const CombineInfo &Paired); 221 static std::pair<unsigned, unsigned> getSubRegIdxs(const CombineInfo &CI, 224 getTargetRegisterClass(const CombineInfo &CI, 228 CombineInfo *checkAndPrepareMerge(CombineInfo &CI, CombineInfo &Paired); [all …]
|
| H A D | SIInsertHardClauses.cpp | 178 bool emitClause(const ClauseInfo &CI, const SIInstrInfo *SII) { in emitClause() argument 179 if (CI.First == CI.Last) in emitClause() 181 assert(CI.Length <= ST->maxHardClauseLength() && in emitClause() 184 auto &MBB = *CI.First->getParent(); in emitClause() 186 BuildMI(MBB, *CI.First, DebugLoc(), SII->get(AMDGPU::S_CLAUSE)) in emitClause() 187 .addImm(CI.Length - 1); in emitClause() 189 std::next(CI.Last->getIterator())); in emitClause() 211 ClauseInfo CI; in run() local 228 if (CI.Length == MaxClauseLength || in run() 229 (CI.Length && Type != HARDCLAUSE_INTERNAL && in run() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | ScalarizeMaskedMemIntrin.cpp | 73 static bool optimizeCallInst(CallInst *CI, bool &ModifiedDT, 146 CallInst *CI, DomTreeUpdater *DTU, in scalarizeMaskedLoad() argument 148 Value *Ptr = CI->getArgOperand(0); in scalarizeMaskedLoad() 149 Value *Alignment = CI->getArgOperand(1); in scalarizeMaskedLoad() 150 Value *Mask = CI->getArgOperand(2); in scalarizeMaskedLoad() 151 Value *Src0 = CI->getArgOperand(3); in scalarizeMaskedLoad() 154 VectorType *VecType = cast<FixedVectorType>(CI->getType()); in scalarizeMaskedLoad() 158 IRBuilder<> Builder(CI->getContext()); in scalarizeMaskedLoad() 159 Instruction *InsertPt = CI; in scalarizeMaskedLoad() 160 BasicBlock *IfBlock = CI->getParent(); in scalarizeMaskedLoad() [all …]
|
| H A D | TailRecursionElimination.cpp | 246 CallInst *CI = dyn_cast<CallInst>(&I); in markTails() local 250 if (!CI || CI->isTailCall() || isa<PseudoProbeInst>(&I)) in markTails() 255 if (auto *II = dyn_cast<IntrinsicInst>(CI)) in markTails() 261 bool IsNoTail = CI->isNoTailCall() || in markTails() 262 CI->hasOperandBundlesOtherThan( in markTails() 266 if (!IsNoTail && CI->doesNotAccessMemory()) { in markTails() 275 for (auto &Arg : CI->args()) { in markTails() 287 return OptimizationRemark(DEBUG_TYPE, "tailcall-readnone", CI) in markTails() 290 CI->setTailCall(); in markTails() 296 if (!IsNoTail && Escaped == UNESCAPED && !Tracker.AllocaUsers.count(CI)) in markTails() [all …]
|
| H A D | 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/contrib/llvm-project/llvm/lib/IR/ |
| H A D | AutoUpgrade.cpp | 1840 static Value *upgradeX86VPERMT2Intrinsics(IRBuilder<> &Builder, CallBase &CI, in upgradeX86VPERMT2Intrinsics() argument 1842 Type *Ty = CI.getType(); in upgradeX86VPERMT2Intrinsics() 1886 Value *Args[] = { CI.getArgOperand(0) , CI.getArgOperand(1), in upgradeX86VPERMT2Intrinsics() 1887 CI.getArgOperand(2) }; in upgradeX86VPERMT2Intrinsics() 1895 : Builder.CreateBitCast(CI.getArgOperand(1), in upgradeX86VPERMT2Intrinsics() 1897 return emitX86Select(Builder, CI.getArgOperand(3), V, PassThru); in upgradeX86VPERMT2Intrinsics() 1900 static Value *upgradeX86BinaryIntrinsics(IRBuilder<> &Builder, CallBase &CI, in upgradeX86BinaryIntrinsics() argument 1902 Type *Ty = CI.getType(); in upgradeX86BinaryIntrinsics() 1903 Value *Op0 = CI.getOperand(0); in upgradeX86BinaryIntrinsics() 1904 Value *Op1 = CI.getOperand(1); in upgradeX86BinaryIntrinsics() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
| H A D | DXILOpLowering.cpp | 54 llvm::function_ref<Error(CallInst *CI)> ReplaceCall) { in replaceFunction() 56 CallInst *CI = dyn_cast<CallInst>(U); in replaceFunction() local 57 if (!CI) in replaceFunction() 60 if (Error E = ReplaceCall(CI)) { in replaceFunction() 63 *CI->getFunction(), Message, CI->getDebugLoc())); in replaceFunction() 109 return replaceFunction(F, [&](CallInst *CI) -> Error { in replaceFunctionWithOp() argument 110 OpBuilder.getIRB().SetInsertPoint(CI); in replaceFunctionWithOp() 116 Args.push_back(CI->getArgOperand(A.Value)); in replaceFunctionWithOp() 127 Args.append(CI->arg_begin(), CI->arg_end()); in replaceFunctionWithOp() 131 OpBuilder.tryCreateOp(DXILOp, Args, CI->getName(), F.getReturnType()); in replaceFunctionWithOp() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCGenScalarMASSEntries.cpp | 53 bool isCandidateSafeToLower(const CallInst &CI) const; 54 bool isFiniteCallSafe(const CallInst &CI) const; 55 bool createScalarMASSCall(StringRef MASSEntry, CallInst &CI, 63 bool PPCGenScalarMASSEntries::isCandidateSafeToLower(const CallInst &CI) const { in isCandidateSafeToLower() 65 if (!isa<FPMathOperator>(CI)) in isCandidateSafeToLower() 68 return CI.hasApproxFunc(); in isCandidateSafeToLower() 73 bool PPCGenScalarMASSEntries::isFiniteCallSafe(const CallInst &CI) const { in isFiniteCallSafe() 75 if (!isa<FPMathOperator>(CI)) in isFiniteCallSafe() 80 return CI.hasNoNaNs() && CI.hasNoInfs() && CI.hasNoSignedZeros(); in isFiniteCallSafe() 87 CallInst &CI, in createScalarMASSCall() argument [all …]
|
| H A D | 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::getOrInsertDeclaration(&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/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/ |
| H A D | AnalyzerHelpFlags.cpp | 23 void ento::printCheckerHelp(raw_ostream &out, CompilerInstance &CI) { in printCheckerHelp() argument 28 CI.getAnalyzerOpts(), CI.getLangOpts(), CI.getDiagnostics(), in printCheckerHelp() 29 CI.getFrontendOpts().Plugins); in printCheckerHelp() 32 CI.getAnalyzerOpts(), out); in printCheckerHelp() 35 void ento::printEnabledCheckerList(raw_ostream &out, CompilerInstance &CI) { in printEnabledCheckerList() argument 39 CI.getAnalyzerOpts(), CI.getLangOpts(), CI.getDiagnostics(), in printEnabledCheckerList() 40 CI.getFrontendOpts().Plugins); in printEnabledCheckerList() 45 void ento::printCheckerConfigList(raw_ostream &out, CompilerInstance &CI) { in printCheckerConfigList() argument 48 CI.getAnalyzerOpts(), CI.getLangOpts(), CI.getDiagnostics(), in printCheckerConfigList() 49 CI.getFrontendOpts().Plugins); in printCheckerConfigList() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Frontend/ |
| H A D | 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/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/ |
| H A D | ModuleDepCollector.cpp | 38 if (const auto *CI = std::get_if<CowCompilerInvocation>(&BuildInfo)) in getBuildArguments() local 39 BuildInfo = CI->getCC1CommandLine(); in getBuildArguments() 183 void ModuleDepCollector::addOutputPaths(CowCompilerInvocation &CI, in addOutputPaths() argument 185 CI.getMutFrontendOpts().OutputFile = in addOutputPaths() 187 if (!CI.getDiagnosticOpts().DiagnosticSerializationFile.empty()) in addOutputPaths() 188 CI.getMutDiagnosticOpts().DiagnosticSerializationFile = in addOutputPaths() 191 if (!CI.getDependencyOutputOpts().OutputFile.empty()) { in addOutputPaths() 192 CI.getMutDependencyOutputOpts().OutputFile = in addOutputPaths() 194 CI.getMutDependencyOutputOpts().Targets = in addOutputPaths() 198 if (!CI.getDependencyOutputOpts().OutputFile.empty() && in addOutputPaths() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/FrontendAction/ |
| H A D | CIRGenAction.cpp | 57 CompilerInstance &CI; member in cir::CIRGenConsumer 68 CIRGenConsumer(CIRGenAction::OutputType Action, CompilerInstance &CI, in CIRGenConsumer() argument 70 : Action(Action), CI(CI), OutputStream(std::move(OS)), in CIRGenConsumer() 71 FS(&CI.getVirtualFileSystem()), in CIRGenConsumer() 72 Gen(std::make_unique<CIRGenerator>(CI.getDiagnostics(), std::move(FS), in CIRGenConsumer() 73 CI.getCodeGenOpts())), in CIRGenConsumer() 74 FEOptions(CI.getFrontendOpts()), CGO(CGO) {} in CIRGenConsumer() 96 CI.getDiagnostics().Report( in HandleTranslationUnit() 113 CI.getDiagnostics().Report(diag::err_cir_to_cir_transform_failed); in HandleTranslationUnit() 136 CI, CI.getCodeGenOpts(), C.getTargetInfo().getDataLayoutString(), in HandleTranslationUnit() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | TypeMetadataUtils.cpp | 27 const CallInst *CI, DominatorTree &DT) { in findCallsAtConstantOffset() argument 36 if (CI->getFunction() != User->getFunction()) in findCallsAtConstantOffset() 38 if (!DT.dominates(CI, User)) in findCallsAtConstantOffset() 41 findCallsAtConstantOffset(DevirtCalls, HasNonCallUses, User, Offset, CI, in findCallsAtConstantOffset() 43 } else if (auto *CI = dyn_cast<CallInst>(User)) { in findCallsAtConstantOffset() local 44 DevirtCalls.push_back({Offset, *CI}); in findCallsAtConstantOffset() 56 int64_t Offset, const CallInst *CI, DominatorTree &DT) { in findLoadCallsAtConstantOffset() argument 63 findLoadCallsAtConstantOffset(M, DevirtCalls, User, Offset, CI, DT); in findLoadCallsAtConstantOffset() 65 findCallsAtConstantOffset(DevirtCalls, nullptr, User, Offset, CI, DT); in findLoadCallsAtConstantOffset() 73 CI, DT); in findLoadCallsAtConstantOffset() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/ |
| H A D | ObjCARC.h | 40 static inline void EraseInstruction(Instruction *CI) { in EraseInstruction() argument 41 Value *OldArg = cast<CallInst>(CI)->getArgOperand(0); in EraseInstruction() 43 bool Unused = CI->use_empty(); in EraseInstruction() 47 assert((IsForwarding(GetBasicARCInstKind(CI)) || in EraseInstruction() 48 (IsNoopOnNull(GetBasicARCInstKind(CI)) && in EraseInstruction() 51 CI->replaceAllUsesWith(OldArg); in EraseInstruction() 54 CI->eraseFromParent(); in EraseInstruction() 129 if (auto *CI = dyn_cast<CallInst>(I)) in contains() local 130 return RVCalls.count(CI); in contains() 135 void eraseInst(CallInst *CI) { in eraseInst() argument [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenAction.cpp | 109 BackendConsumer::BackendConsumer(CompilerInstance &CI, BackendAction Action, in BackendConsumer() argument 117 : CI(CI), Diags(CI.getDiagnostics()), CodeGenOpts(CI.getCodeGenOpts()), in BackendConsumer() 118 TargetOpts(CI.getTargetOpts()), LangOpts(CI.getLangOpts()), in BackendConsumer() 121 CI.getHeaderSearchOpts(), CI.getPreprocessorOpts(), in BackendConsumer() 122 CI.getCodeGenOpts(), C, CoverageInfo)), in BackendConsumer() 128 LLVMIRGeneration.init("irgen", "LLVM IR generation", CI.getTimerGroup()); in BackendConsumer() 168 CI.getFrontendTimer().yieldTo(LLVMIRGeneration); in HandleTopLevelDecl() 173 LLVMIRGeneration.yieldTo(CI.getFrontendTimer()); in HandleTopLevelDecl() 183 CI.getFrontendTimer().yieldTo(LLVMIRGeneration); in HandleInlineFunctionDefinition() 188 LLVMIRGeneration.yieldTo(CI.getFrontendTimer()); in HandleInlineFunctionDefinition() [all …]
|