Searched refs:CI (Results 101 - 125 of 397) sorted by relevance

1234567891011>>

/freebsd-13-stable/contrib/llvm-project/clang/include/clang/CrossTU/
H A DCrossTranslationUnit.h125 CrossTranslationUnitContext(CompilerInstance &CI);
234 ASTLoader(CompilerInstance &CI, StringRef CTUDir,
257 CompilerInstance &CI; member in class:clang::cross_tu::CrossTranslationUnitContext::ASTLoader
291 ASTUnitStorage(CompilerInstance &CI);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DLint.cpp294 if (const auto *CI = dyn_cast<CallInst>(&I)) {
295 if (CI->isTailCall()) {
296 const AttributeList &PAL = CI->getAttributes();
528 if (ConstantInt *CI = dyn_cast<ConstantInt>(findValue(I.getOperand(1),
530 Assert(CI->getValue().ult(cast<IntegerType>(I.getType())->getBitWidth()),
535 if (ConstantInt *CI =
537 Assert(CI->getValue().ult(cast<IntegerType>(I.getType())->getBitWidth()),
542 if (ConstantInt *CI =
544 Assert(CI->getValue().ult(cast<IntegerType>(I.getType())->getBitWidth()),
626 if (ConstantInt *CI
[all...]
H A DMemoryBuiltins.cpp343 static Value *computeArraySize(const CallInst *CI, const DataLayout &DL, argument
346 if (!CI)
350 Type *T = getMallocAllocatedType(CI, TLI);
360 Value *MallocArg = CI->getArgOperand(0);
373 PointerType *llvm::getMallocType(const CallInst *CI, argument
375 assert(isMallocLikeFn(CI, TLI) && "getMallocType and not malloc call");
381 for (Value::const_user_iterator UI = CI->user_begin(), E = CI->user_end();
394 return cast<PointerType>(CI->getType());
405 Type *llvm::getMallocAllocatedType(const CallInst *CI, argument
416 getMallocArraySize(CallInst *CI, const DataLayout &DL, const TargetLibraryInfo *TLI, bool LookThroughSExt) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DDwarfEHPrepare.cpp234 CallInst *CI = CallInst::Create(RewindFunction, ExnObj, "", UnwindBB); local
235 CI->setCallingConv(TLI->getLibcallCallingConv(RTLIB::UNWIND_RESUME));
259 CallInst *CI = CallInst::Create(RewindFunction, PN, "", UnwindBB); local
260 CI->setCallingConv(TLI->getLibcallCallingConv(RTLIB::UNWIND_RESUME));
H A DWasmEHPrepare.cpp360 if (auto *CI = dyn_cast<CallInst>(U.getUser())) {
361 if (CI->getCalledOperand() == GetExnF)
362 GetExnCI = CI;
363 if (CI->getCalledOperand() == GetSelectorF)
364 GetSelectorCI = CI;
H A DSafeStack.cpp207 bool ShouldInlinePointerAddress(CallInst &CI);
405 } else if (auto CI = dyn_cast<CallInst>(&I)) {
407 if (CI->getCalledFunction() && CI->canReturnTwice())
408 StackRestorePoints.push_back(CI);
722 bool SafeStack::ShouldInlinePointerAddress(CallInst &CI) { argument
723 Function *Callee = CI.getCalledFunction();
724 if (CI.hasFnAttr(Attribute::AlwaysInline) &&
728 CI.isNoInline())
734 auto *CI local
[all...]
H A DCodeGenPrepare.cpp392 bool optimizeCallInst(CallInst *CI, bool &ModifiedDT);
1125 static bool SinkCast(CastInst *CI) { argument
1126 BasicBlock *DefBB = CI->getParent();
1132 for (Value::user_iterator UI = CI->user_begin(), E = CI->user_end();
1167 InsertedCast = CastInst::Create(CI->getOpcode(), CI->getOperand(0),
1168 CI->getType(), "", &*InsertPt);
1169 InsertedCast->setDebugLoc(CI->getDebugLoc());
1179 if (CI
1193 OptimizeNoopCopyExpression(CastInst *CI, const TargetLowering &TLI, const DataLayout &DL) argument
1678 SinkShiftAndTruncate(BinaryOperator *ShiftI, Instruction *User, ConstantInt *CI, DenseMap<BasicBlock *, BinaryOperator *> &InsertedShifts, const TargetLowering &TLI, const DataLayout &DL) argument
1767 OptimizeExtractBits(BinaryOperator *ShiftI, ConstantInt *CI, const TargetLowering &TLI, const DataLayout &DL) argument
1927 optimizeCallInst(CallInst *CI, bool &ModifiedDT) argument
2213 CallInst *CI = dyn_cast<CallInst>(IncomingVal); local
2234 CallInst *CI = dyn_cast<CallInst>(&*RI); local
3730 ConstantInt *CI = nullptr; Value *AddLHS = nullptr; local
4612 IsOperandAMemoryOperand(CallInst *CI, InlineAsm *IA, Value *OpVal, const TargetLowering &TLI, const TargetRegisterInfo &TRI) argument
5308 auto *CI = dyn_cast_or_null<ConstantInt>(C); local
7529 ConstantInt *CI = dyn_cast<ConstantInt>(BinOp->getOperand(1)); local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DPlaceSafepoints.cpp187 if (auto *CI = dyn_cast<CallInst>(Call)) {
188 if (CI->isInlineAsm())
274 if (CallInst *CI = dyn_cast<CallInst>(&*BBI))
275 Calls.push_back(CI);
681 for (auto *CI : Calls) {
683 if (!needsStatepoint(CI, TLI))
688 ParsePointsNeeded.push_back(CI);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonTargetTransformInfo.cpp322 auto isCastFoldedIntoLoad = [this](const CastInst *CI) -> bool {
323 if (!CI->isIntegerCast())
328 unsigned SBW = DL.getTypeSizeInBits(CI->getSrcTy());
329 unsigned DBW = DL.getTypeSizeInBits(CI->getDestTy());
333 const LoadInst *LI = dyn_cast<const LoadInst>(CI->getOperand(0));
340 if (const CastInst *CI = dyn_cast<const CastInst>(U))
341 if (isCastFoldedIntoLoad(CI))
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/
H A DAnalysisConsumer.cpp120 AnalysisConsumer(CompilerInstance &CI, const std::string &outdir, argument
124 PP(CI.getPreprocessor()), OutDir(outdir), Opts(std::move(opts)),
125 Plugins(plugins), Injector(injector), CTU(CI) {
726 ento::CreateAnalysisConsumer(CompilerInstance &CI) { argument
728 CI.getPreprocessor().getDiagnostics().setWarningsAsErrors(false);
730 AnalyzerOptionsRef analyzerOpts = CI.getAnalyzerOpts();
734 CI, CI.getFrontendOpts().OutputFile, analyzerOpts,
735 CI.getFrontendOpts().Plugins,
736 hasModelPath ? new ModelInjector(CI)
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARCContract.cpp505 CallInst *CI = cast<CallInst>(Inst); local
506 if (IsNullOrUndef(CI->getArgOperand(1))) {
507 Value *Null = ConstantPointerNull::get(cast<PointerType>(CI->getType()));
509 new StoreInst(Null, CI->getArgOperand(0), CI);
511 LLVM_DEBUG(dbgs() << "OBJCARCContract: Old = " << *CI << "\n"
514 CI->replaceAllUsesWith(Null);
515 CI->eraseFromParent();
712 for (CallInst *CI : StoreStrongCalls)
713 CI
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBlocks.cpp85 const BlockDecl::Capture *CI; member in struct:__anon1672::BlockCaptureManagedEntity
92 const BlockDecl::Capture &CI,
95 DisposeFlags(DisposeFlags), CI(&CI), Capture(&Capture) {}
504 const BlockDecl::Capture &CI) {
505 const VarDecl *VD = CI.getVariable();
509 if (CGF.BlockInfo && CI.isNested())
570 for (const auto &CI : block->captures()) {
571 const VarDecl *variable = CI.getVariable();
573 if (CI
88 BlockCaptureManagedEntity(BlockCaptureEntityKind CopyType, BlockCaptureEntityKind DisposeType, BlockFieldFlags CopyFlags, BlockFieldFlags DisposeFlags, const BlockDecl::Capture &CI, const CGBlockInfo::Capture &Capture) argument
503 getCaptureFieldType(const CodeGenFunction &CGF, const BlockDecl::Capture &CI) argument
1614 computeCopyInfoForBlockCapture(const BlockDecl::Capture &CI, QualType T, const LangOptions &LangOpts) argument
1739 const BlockDecl::Capture &CI = *E.CI; local
1977 const BlockDecl::Capture &CI = *CopiedCapture.CI; local
2059 getBlockFieldFlagsForObjCObjectPointer(const BlockDecl::Capture &CI, QualType T) argument
2068 computeDestroyInfoForBlockCapture(const BlockDecl::Capture &CI, QualType T, const LangOptions &LangOpts) argument
2172 const BlockDecl::Capture &CI = *DestroyedCapture.CI; local
[all...]
/freebsd-13-stable/contrib/llvm-project/lldb/tools/lldb-instr/
H A DInstrument.cpp324 bool BeginSourceFileAction(CompilerInstance &CI) override {
334 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
336 MyRewriter.setSourceMgr(CI.getSourceManager(), CI.getLangOpts());
337 return std::make_unique<SBConsumer>(MyRewriter, CI.getASTContext());
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DValueLattice.h310 if (ConstantInt *CI = dyn_cast<ConstantInt>(V))
312 ConstantRange(CI->getValue()),
323 if (ConstantInt *CI = dyn_cast<ConstantInt>(V))
325 ConstantRange(CI->getValue() + 1, CI->getValue()));
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DStripSymbols.cpp261 CallInst *CI = cast<CallInst>(Declare->user_back()); local
262 Value *Arg1 = CI->getArgOperand(0);
263 Value *Arg2 = CI->getArgOperand(1);
264 assert(CI->use_empty() && "llvm.dbg intrinsic should have void result");
265 CI->eraseFromParent();
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineInternal.h413 Instruction *commonCastTransforms(CastInst &CI);
414 Instruction *commonPointerCastTransforms(CastInst &CI);
415 Instruction *visitTrunc(TruncInst &CI);
416 Instruction *visitZExt(ZExtInst &CI);
417 Instruction *visitSExt(SExtInst &CI);
418 Instruction *visitFPTrunc(FPTruncInst &CI);
419 Instruction *visitFPExt(CastInst &CI);
422 Instruction *visitUIToFP(CastInst &CI);
423 Instruction *visitSIToFP(CastInst &CI);
424 Instruction *visitPtrToInt(PtrToIntInst &CI);
[all...]
H A DInstCombineCalls.cpp1850 Instruction *InstCombiner::visitCallInst(CallInst &CI) { argument
1853 if (!CI.use_empty())
1854 if (Value *V = SimplifyCall(&CI, SQ.getWithInstruction(&CI)))
1855 return replaceInstUsesWith(CI, V);
1857 if (isFreeCall(&CI, &TLI))
1858 return visitFree(CI);
1862 if (CI.getFunction()->doesNotThrow() && !CI.doesNotThrow()) {
1863 CI
4389 isSafeToEliminateVarargsCast(const CallBase &Call, const DataLayout &DL, const CastInst *const CI, const int ix) argument
4423 tryOptimizeCall(CallInst *CI) argument
4681 CastInst *CI = dyn_cast<CastInst>(*I); local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPropagateAttributes.cpp251 CallBase *CI = dyn_cast<CallBase>(I); local
252 if (!CI)
254 Function *Caller = CI->getCaller();
255 if (!Caller || !Visited.insert(CI).second)
288 ToReplace.push_back(std::make_pair(CI, NewF));
H A DAMDGPUTargetTransformInfo.cpp731 const CallInst *CI, ArrayRef<unsigned> Indices) const {
736 const DataLayout &DL = CI->getModule()->getDataLayout();
739 TLI->ParseConstraints(DL, ST->getRegisterInfo(), *CI);
805 if (const CallInst *CI = dyn_cast<CallInst>(V)) {
806 if (CI->isInlineAsm())
807 return isInlineAsmSourceOfDivergence(CI);
833 if (const CallInst *CI = dyn_cast<CallInst>(V)) {
834 if (CI->isInlineAsm())
835 return !isInlineAsmSourceOfDivergence(CI);
843 const CallInst *CI
[all...]
H A DAMDGPUPromoteAlloca.cpp335 CallInst *CI = Builder.CreateCall(WorkitemIdFn); local
336 ST.makeLIDRangeMetadata(CI);
338 return CI;
573 static bool isCallPromotable(CallInst *CI) { argument
574 IntrinsicInst *II = dyn_cast<IntrinsicInst>(CI);
636 if (CallInst *CI = dyn_cast<CallInst>(User)) {
637 if (!isCallPromotable(CI))
935 if (ICmpInst *CI = dyn_cast<ICmpInst>(V)) {
936 Value *Src0 = CI->getOperand(0);
940 if (isa<ConstantPointerNull>(CI
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp71 if (const auto *CI = dyn_cast<CmpInst>(U)) {
72 NumOfSigned += CI->isSigned();
73 NumOfUnsigned += CI->isUnsigned();
229 if (const auto *CI = dyn_cast<CallInst>(&I)) {
230 if (CI->isMustTailCall() && Fn->isVarArg())
458 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
459 APInt Val = CI->getValue().zextOrTrunc(BitWidth);
491 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
492 APInt Val = CI->getValue().zextOrTrunc(BitWidth);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFAbstractMemberAccess.cpp228 auto *CI = SR->getCount().dyn_cast<ConstantInt *>(); local
229 DimSize *= CI->getSExtValue();
418 } else if (auto *CI = dyn_cast<CallInst>(Inst)) {
421 if (IsPreserveDIAccessIndexCall(CI, ChildInfo) &&
424 AIChain[CI] = std::make_pair(Call, ParentInfo);
425 traceAICall(CI, ChildInfo);
450 } else if (auto *CI = dyn_cast<CallInst>(Inst)) {
452 if (IsPreserveDIAccessIndexCall(CI, ChildInfo) &&
455 AIChain[CI] = std::make_pair(Parent, ParentInfo);
456 traceAICall(CI, ChildInf
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp538 CallInst *CI = dyn_cast<CallInst>(I); local
540 if (!CI || CI->doesNotThrow() || CI->isInlineAsm())
549 if (auto *F = CI->getCalledFunction())
554 if (auto FuncletBundle = CI->getOperandBundle(LLVMContext::OB_funclet)) {
579 changeToInvokeAndSplitBasicBlock(CI, UnwindEdge);
1603 if (auto *CI = dyn_cast_or_null<CallInst>(Entry.second))
1604 CI->updateProfWeight(cloneEntryCount, priorEntryCount);
1614 if (CallInst *CI
1974 CallInst *CI = dyn_cast<CallInst>(&I); local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FastISel.cpp148 unsigned X86MaterializeInt(const ConstantInt *CI, MVT VT);
664 if (const ConstantInt *CI = dyn_cast<ConstantInt>(Val)) {
677 if (isInt<32>(CI->getSExtValue()))
685 addFullAddress(MIB, AM).addImm(Signed ? (uint64_t) CI->getSExtValue()
686 : CI->getZExtValue());
887 if (const ConstantInt *CI = dyn_cast<ConstantInt>(U->getOperand(1))) {
888 uint64_t Disp = (int32_t)AM.Disp + (uint64_t)CI->getSExtValue();
921 if (const ConstantInt *CI = dyn_cast<ConstantInt>(Op)) {
923 Disp += CI->getSExtValue() * S;
928 ConstantInt *CI local
1419 const CmpInst *CI = cast<CmpInst>(I); local
2024 const auto *CI = dyn_cast<CmpInst>(Cond); local
2143 const auto *CI = dyn_cast<FCmpInst>(I->getOperand(0)); local
2295 const auto *CI = dyn_cast<CmpInst>(Cond); local
3186 const CallInst *CI = dyn_cast_or_null<CallInst>(CLI.CB); local
3685 X86MaterializeInt(const ConstantInt *CI, MVT VT) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineOperand.h170 const ConstantInt *CI; // For MO_CImmediate. Integers > 64bit. member in union:llvm::MachineOperand::ContentsUnion
542 return Contents.CI;
658 void setCImm(const ConstantInt *CI) {
660 Contents.CI = CI;
772 static MachineOperand CreateCImm(const ConstantInt *CI) {
774 Op.Contents.CI = CI;

Completed in 181 milliseconds

1234567891011>>