reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/IR/Intrinsics.h
   80   Function *getDeclaration(Module *M, ID id, ArrayRef<Type*> Tys = None);

References

examples/BrainF/BrainF.cpp
   71   Function *memset_func = Intrinsic::getDeclaration(module, Intrinsic::memset,
include/llvm/IR/IRBuilder.h
 2441     Function *FnLaunderInvariantGroup = Intrinsic::getDeclaration(
 2469     Function *FnStripInvariantGroup = Intrinsic::getDeclaration(
 2541     Function *FnPreserveArrayAccessIndex = Intrinsic::getDeclaration(
 2560     Function *FnPreserveUnionAccessIndex = Intrinsic::getDeclaration(
 2584     Function *FnPreserveStructAccessIndex = Intrinsic::getDeclaration(
lib/Analysis/ScalarEvolutionExpander.cpp
 2283   auto *MulF = Intrinsic::getDeclaration(Loc->getModule(),
lib/CodeGen/ExpandMemCmp.cpp
  460     Function *Bswap = Intrinsic::getDeclaration(CI->getModule(),
  581     Function *Bswap = Intrinsic::getDeclaration(CI->getModule(),
lib/CodeGen/HardwareLoops.cpp
  375   Function *LoopIter = Intrinsic::getDeclaration(M, ID, Ty);
  396     Intrinsic::getDeclaration(M, Intrinsic::loop_decrement,
  418       Intrinsic::getDeclaration(M, Intrinsic::loop_decrement_reg,
lib/CodeGen/IntrinsicLowering.cpp
  501   Function *Int = Intrinsic::getDeclaration(M, Intrinsic::bswap, Ty);
lib/CodeGen/SjLjEHPrepare.cpp
  480   FrameAddrFn = Intrinsic::getDeclaration(
  484   StackAddrFn = Intrinsic::getDeclaration(&M, Intrinsic::stacksave);
  485   StackRestoreFn = Intrinsic::getDeclaration(&M, Intrinsic::stackrestore);
  487     Intrinsic::getDeclaration(&M, Intrinsic::eh_sjlj_setup_dispatch);
  488   LSDAAddrFn = Intrinsic::getDeclaration(&M, Intrinsic::eh_sjlj_lsda);
  489   CallSiteFn = Intrinsic::getDeclaration(&M, Intrinsic::eh_sjlj_callsite);
  490   FuncCtxFn = Intrinsic::getDeclaration(&M, Intrinsic::eh_sjlj_functioncontext);
lib/CodeGen/StackProtector.cpp
  228             Intrinsic::getDeclaration(F.getParent(), Intrinsic::stackprotector))
  369   return B.CreateCall(Intrinsic::getDeclaration(M, Intrinsic::stackguard));
  390   B.CreateCall(Intrinsic::getDeclaration(M, Intrinsic::stackprotector),
lib/CodeGen/WasmEHPrepare.cpp
  178   ThrowF = Intrinsic::getDeclaration(&M, Intrinsic::wasm_throw);
  232   LPadIndexF = Intrinsic::getDeclaration(&M, Intrinsic::wasm_landingpad_index);
  235   LSDAF = Intrinsic::getDeclaration(&M, Intrinsic::wasm_lsda);
  238   GetExnF = Intrinsic::getDeclaration(&M, Intrinsic::wasm_get_exception);
  239   GetSelectorF = Intrinsic::getDeclaration(&M, Intrinsic::wasm_get_ehselector);
  246       Intrinsic::getDeclaration(&M, Intrinsic::wasm_extract_exception);
lib/IR/AutoUpgrade.cpp
   47   NewFn = Intrinsic::getDeclaration(F->getParent(), IID);
   63   NewFn = Intrinsic::getDeclaration(F->getParent(), IID);
  413     NewFn = Intrinsic::getDeclaration(F->getParent(),
  451     NewFn = Intrinsic::getDeclaration(F->getParent(),
  457     NewFn = Intrinsic::getDeclaration(F->getParent(),
  477       NewFn = Intrinsic::getDeclaration(F->getParent(), Permil2ID);
  483     NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::eh_recoverfp);
  503       NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::bitreverse,
  521       NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::ctpop,
  551         NewFn = Intrinsic::getDeclaration(F->getParent(),
  554         NewFn = Intrinsic::getDeclaration(F->getParent(),
  559       NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::thread_pointer);
  568         NewFn = Intrinsic::getDeclaration(F->getParent(),
  579       NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::ctlz,
  585       NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::cttz,
  594       NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::dbg_value);
  613         NewFn = Intrinsic::getDeclaration(F->getParent(), ID, Tys);
  629         NewFn = Intrinsic::getDeclaration(F->getParent(), ID, ObjectPtr);
  643         NewFn = Intrinsic::getDeclaration(F->getParent(), ID, ObjectPtr);
  652       NewFn = Intrinsic::getDeclaration(F->getParent(),
  665         NewFn = Intrinsic::getDeclaration(F->getParent(),
  676         NewFn = Intrinsic::getDeclaration(F->getParent(),
  688         NewFn = Intrinsic::getDeclaration(F->getParent(),
  698         NewFn = Intrinsic::getDeclaration(F->getParent(),
  710       NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::memcpy,
  718       NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::memmove,
  730       NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::memset,
  747         NewFn = Intrinsic::getDeclaration(F->getParent(), IID,
  779         NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::objectsize,
  793             Intrinsic::getDeclaration(F->getParent(), Intrinsic::prefetch, Tys);
 1084   Value *V = Builder.CreateCall(Intrinsic::getDeclaration(CI.getModule(), IID),
 1101   Function *Intrin = Intrinsic::getDeclaration(CI.getModule(), IID, Ty);
 1128   Function *Intrin = Intrinsic::getDeclaration(CI.getModule(), IID, Ty);
 1198   Function *Intrin = Intrinsic::getDeclaration(CI.getModule(), IID, Ty);
 1363   Function *Intrin = Intrinsic::getDeclaration(CI.getModule(), IID);
 1624   Rep = Builder.CreateCall(Intrinsic::getDeclaration(CI.getModule(), IID),
 1794       Function *Intr = Intrinsic::getDeclaration(F->getParent(),
 1801       Rep = Builder.CreateCall(Intrinsic::getDeclaration(F->getParent(),
 1813         Rep = Builder.CreateCall(Intrinsic::getDeclaration(CI->getModule(),
 1816         Rep = Builder.CreateCall(Intrinsic::getDeclaration(F->getParent(),
 1939       Rep = Builder.CreateCall(Intrinsic::getDeclaration(F->getParent(), IID),
 1962       Rep = Builder.CreateCall(Intrinsic::getDeclaration(F->getParent(), IID),
 1992       Rep = Builder.CreateCall(Intrinsic::getDeclaration(F->getParent(), IID),
 2104         Function *F = Intrinsic::getDeclaration(CI->getModule(), IID,
 2134       Function *ELd = Intrinsic::getDeclaration(F->getParent(),
 2149       Function *CSt = Intrinsic::getDeclaration(F->getParent(),
 2163       Function *Intr = Intrinsic::getDeclaration(F->getParent(), IID, ResultTy);
 2227       Function *CRC32 = Intrinsic::getDeclaration(F->getParent(),
 2737         Rep = Builder.CreateCall(Intrinsic::getDeclaration(F->getParent(), IID),
 2753         Rep = Builder.CreateCall(Intrinsic::getDeclaration(F->getParent(), IID),
 2769         Rep = Builder.CreateCall(Intrinsic::getDeclaration(F->getParent(), IID),
 2785         Rep = Builder.CreateCall(Intrinsic::getDeclaration(F->getParent(), IID),
 2804       Rep = Builder.CreateCall(Intrinsic::getDeclaration(F->getParent(), IID),
 2810       Rep = Builder.CreateCall(Intrinsic::getDeclaration(F->getParent(),
 3060       Rep = Builder.CreateCall(Intrinsic::getDeclaration(CI->getModule(),
 3076       Rep = Builder.CreateCall(Intrinsic::getDeclaration(CI->getModule(),
 3119         Function *FMA = Intrinsic::getDeclaration(CI->getModule(), IID);
 3122         Function *FMA = Intrinsic::getDeclaration(CI->getModule(),
 3176         Rep = Builder.CreateCall(Intrinsic::getDeclaration(F->getParent(), IID),
 3179         Function *FMA = Intrinsic::getDeclaration(CI->getModule(),
 3198       Function *FMA = Intrinsic::getDeclaration(CI->getModule(), Intrinsic::fma,
 3236         Rep = Builder.CreateCall(Intrinsic::getDeclaration(F->getParent(), IID),
 3245         Function *FMA = Intrinsic::getDeclaration(CI->getModule(), Intrinsic::fma,
 3289       Rep = Builder.CreateCall(Intrinsic::getDeclaration(CI->getModule(), IID),
 3317       Rep = Builder.CreateCall(Intrinsic::getDeclaration(CI->getModule(), IID),
 3353       Rep = Builder.CreateCall(Intrinsic::getDeclaration(CI->getModule(), IID),
 3383       Rep = Builder.CreateCall(Intrinsic::getDeclaration(CI->getModule(), IID),
 3407                                 Intrinsic::getDeclaration(CI->getModule(), IID),
 3456           Intrinsic::getDeclaration(F->getParent(), Intrinsic::ctlz,
 3465           Intrinsic::getDeclaration(F->getParent(), Intrinsic::ctpop,
 3470       Rep = Builder.CreateCall(Intrinsic::getDeclaration(
 3869     Function *NewFn = llvm::Intrinsic::getDeclaration(&M, IntrinsicFunc);
lib/IR/Core.cpp
 2329   return wrap(llvm::Intrinsic::getDeclaration(unwrap(Mod), IID, Tys));
lib/IR/DIBuilder.cpp
  915   return Intrinsic::getDeclaration(&M, UseDbgAddr ? Intrinsic::dbg_addr
  950     ValueFn = Intrinsic::getDeclaration(&M, Intrinsic::dbg_value);
  971     LabelFn = Intrinsic::getDeclaration(&M, Intrinsic::dbg_label);
lib/IR/Function.cpp
 1412   auto NewDecl = Intrinsic::getDeclaration(F->getParent(), ID, ArgTys);
lib/IR/IRBuilder.cpp
  107   Function *TheFn = Intrinsic::getDeclaration(M, Intrinsic::memset, Tys);
  137   Function *TheFn = Intrinsic::getDeclaration(
  169   Function *TheFn = Intrinsic::getDeclaration(M, Intrinsic::memcpy, Tys);
  210   Function *TheFn = Intrinsic::getDeclaration(
  249   Function *TheFn = Intrinsic::getDeclaration(M, Intrinsic::memmove, Tys);
  286   Function *TheFn = Intrinsic::getDeclaration(
  319   auto Decl = Intrinsic::getDeclaration(M, ID, Tys);
  327   auto Decl = Intrinsic::getDeclaration(
  336   auto Decl = Intrinsic::getDeclaration(
  412       Intrinsic::getDeclaration(M, Intrinsic::lifetime_start, {Ptr->getType()});
  428       Intrinsic::getDeclaration(M, Intrinsic::lifetime_end, {Ptr->getType()});
  448       Intrinsic::getDeclaration(M, Intrinsic::invariant_start, ObjectPtr);
  458   Function *FnAssume = Intrinsic::getDeclaration(M, Intrinsic::assume);
  510   Function *TheFn = Intrinsic::getDeclaration(M, Id, OverloadedTypes);
  615     Intrinsic::getDeclaration(M, Intrinsic::experimental_gc_statepoint,
  664   Function *FnStatepoint = Intrinsic::getDeclaration(
  711  Function *FnGCResult = Intrinsic::getDeclaration(M, ID, Types);
  725      Intrinsic::getDeclaration(M, Intrinsic::experimental_gc_relocate, Types);
  737   Function *Fn = Intrinsic::getDeclaration(M, ID, {V->getType()});
  746   Function *Fn = Intrinsic::getDeclaration(M, ID, { LHS->getType() });
  756   Function *Fn = Intrinsic::getDeclaration(M, ID, Types);
lib/Target/AArch64/AArch64ISelLowering.cpp
 8836       Intrinsic::getDeclaration(LI->getModule(), LoadInts[Factor - 2], Tys);
 8978       Intrinsic::getDeclaration(SI->getModule(), StoreInts[Factor - 2], Tys);
12181     Function *Ldxr = Intrinsic::getDeclaration(M, Int);
12197   Function *Ldxr = Intrinsic::getDeclaration(M, Int, Tys);
12211   Builder.CreateCall(Intrinsic::getDeclaration(M, Intrinsic::aarch64_clrex));
12226     Function *Stxr = Intrinsic::getDeclaration(M, Int);
12238   Function *Stxr = Intrinsic::getDeclaration(M, Int, Tys);
12263       Intrinsic::getDeclaration(M, Intrinsic::thread_pointer);
lib/Target/AArch64/AArch64StackTagging.cpp
  409       Intrinsic::getDeclaration(F->getParent(), Intrinsic::aarch64_settag_zero);
  411       Intrinsic::getDeclaration(F->getParent(), Intrinsic::aarch64_stgp);
  454       Intrinsic::getDeclaration(F->getParent(), Intrinsic::aarch64_irg_sp);
  609       Intrinsic::getDeclaration(F->getParent(), Intrinsic::aarch64_settag);
  621     Function *TagP = Intrinsic::getDeclaration(
lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp
  287       Intrinsic::getDeclaration(M, Intrinsic::amdgcn_update_dpp, Ty);
  289       Intrinsic::getDeclaration(M, Intrinsic::amdgcn_permlanex16, {});
  291       Intrinsic::getDeclaration(M, Intrinsic::amdgcn_readlane, {});
  346       Intrinsic::getDeclaration(M, Intrinsic::amdgcn_update_dpp, Ty);
  348       Intrinsic::getDeclaration(M, Intrinsic::amdgcn_readlane, {});
  350       Intrinsic::getDeclaration(M, Intrinsic::amdgcn_writelane, {});
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
  398       Intrinsic::getDeclaration(Mod, Intrinsic::bitreverse, { I32Ty });
  496   FunctionCallee Intrin = Intrinsic::getDeclaration(Mod, IntrID);
  570   Function *Decl = Intrinsic::getDeclaration(Mod, Intrinsic::amdgcn_fdiv_fast);
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
  187       = Intrinsic::getDeclaration(Mod, Intrinsic::r600_read_local_size_y);
  189       = Intrinsic::getDeclaration(Mod, Intrinsic::r600_read_local_size_z);
  235     = Intrinsic::getDeclaration(Mod, Intrinsic::amdgcn_dispatch_ptr);
  291   Function *WorkitemIdFn = Intrinsic::getDeclaration(Mod, IntrID);
  919       Function *ObjectSize = Intrinsic::getDeclaration(Mod,
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
  626         Intrinsic::getDeclaration(M, II->getIntrinsicID(), {DestTy, SrcTy});
lib/Target/AMDGPU/AMDGPUUnifyDivergentExitNodes.cpp
  238         Intrinsic::getDeclaration(F.getParent(), Intrinsic::amdgcn_unreachable);
lib/Target/AMDGPU/SIAnnotateControlFlow.cpp
  151   If = Intrinsic::getDeclaration(&M, Intrinsic::amdgcn_if, { IntMask });
  152   Else = Intrinsic::getDeclaration(&M, Intrinsic::amdgcn_else,
  154   IfBreak = Intrinsic::getDeclaration(&M, Intrinsic::amdgcn_if_break,
  156   Loop = Intrinsic::getDeclaration(&M, Intrinsic::amdgcn_loop, { IntMask });
  157   EndCf = Intrinsic::getDeclaration(&M, Intrinsic::amdgcn_end_cf, { IntMask });
lib/Target/ARM/ARMCodeGenPrepare.cpp
  593       Intrinsic::getDeclaration(M, getNarrowIntrinsic(I));
lib/Target/ARM/ARMISelLowering.cpp
16411       Function *MCR = Intrinsic::getDeclaration(M, Intrinsic::arm_mcr);
16422     Function *DMB = Intrinsic::getDeclaration(M, Intrinsic::arm_dmb);
16618     Function *Ldrex = Intrinsic::getDeclaration(M, Int);
16635   Function *Ldrex = Intrinsic::getDeclaration(M, Int, Tys);
16647   Builder.CreateCall(Intrinsic::getDeclaration(M, Intrinsic::arm_clrex));
16662     Function *Strex = Intrinsic::getDeclaration(M, Int);
16675   Function *Strex = Intrinsic::getDeclaration(M, Int, Tys);
16793       Intrinsic::getDeclaration(LI->getModule(), LoadInts[Factor - 2], Tys);
16952         Intrinsic::getDeclaration(SI->getModule(), StoreInts[Factor - 2], Tys);
lib/Target/ARM/ARMParallelDSP.cpp
  636         Intrinsic::getDeclaration(M, Intrinsic::arm_smladx) :
  637         Intrinsic::getDeclaration(M, Intrinsic::arm_smlaldx);
  640         Intrinsic::getDeclaration(M, Intrinsic::arm_smlad) :
  641         Intrinsic::getDeclaration(M, Intrinsic::arm_smlald);
lib/Target/ARM/MVETailPredication.cpp
  493     Function *VCTP = Intrinsic::getDeclaration(M, VCTPID);
lib/Target/Hexagon/HexagonGenExtract.cpp
  213   Function *ExtF = Intrinsic::getDeclaration(Mod, IntId);
lib/Target/Hexagon/HexagonISelLowering.cpp
 3249   Function *Fn = Intrinsic::getDeclaration(M, IntID);
 3273   Function *Fn = Intrinsic::getDeclaration(M, IntID);
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
 1526   Function *PMF = Intrinsic::getDeclaration(M, Intrinsic::hexagon_M4_pmpyw);
lib/Target/PowerPC/PPCISelLowering.cpp
10262   Function *Func = Intrinsic::getDeclaration(M, Id);
10287           Intrinsic::getDeclaration(
lib/Target/RISCV/RISCVISelLowering.cpp
 2811   Function *LrwOpScwLoop = Intrinsic::getDeclaration(
 2870       Intrinsic::getDeclaration(CI->getModule(), CmpXchgIntrID, Tys);
lib/Target/SystemZ/SystemZTDC.cpp
  359           Intrinsic::getDeclaration(&M, Intrinsic::s390_tdc, V->getType());
lib/Target/WebAssembly/WebAssemblyLowerGlobalDtors.cpp
  175       CallInst::Create(Intrinsic::getDeclaration(&M, Intrinsic::trap), "",
lib/Target/X86/X86ISelLowering.cpp
26576       llvm::Intrinsic::getDeclaration(M, Intrinsic::x86_sse2_mfence);
lib/Target/X86/X86WinEHState.cpp
  290         Intrinsic::getDeclaration(TheModule, Intrinsic::stacksave), {});
  320         Intrinsic::getDeclaration(TheModule, Intrinsic::stacksave), {});
  342           Intrinsic::getDeclaration(
  379       Intrinsic::getDeclaration(TheModule, Intrinsic::x86_seh_lsda), FI8);
  643       Intrinsic::getDeclaration(TheModule, Intrinsic::x86_seh_ehregnode),
  651         Intrinsic::getDeclaration(TheModule, Intrinsic::x86_seh_ehguard),
lib/Target/XCore/XCoreLowerThreadLocal.cpp
  208     Function *GetID = Intrinsic::getDeclaration(GV->getParent(),
lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
  148   Function *F = Intrinsic::getDeclaration(Phi.getModule(), IID, Phi.getType());
  307           Function *Func = Intrinsic::getDeclaration(
lib/Transforms/Coroutines/CoroFrame.cpp
 1105                             Intrinsic::getDeclaration(M, Intrinsic::stacksave));
 1124                     Intrinsic::getDeclaration(M, Intrinsic::stackrestore),
lib/Transforms/Coroutines/Coroutines.cpp
  110   auto *Fn = Intrinsic::getDeclaration(&TheModule, Intrinsic::coro_subfn_addr);
  239   auto *Fn = Intrinsic::getDeclaration(M, Intrinsic::coro_save);
lib/Transforms/IPO/Attributor.cpp
 3610         Function *Fn = Intrinsic::getDeclaration(M, Intrinsic::memset, Tys);
lib/Transforms/IPO/CrossDSOCFI.cpp
  146     Function *BitsetTestFn = Intrinsic::getDeclaration(&M, Intrinsic::type_test);
lib/Transforms/IPO/WholeProgramDevirt.cpp
 1074       Intrinsic::getDeclaration(&M, llvm::Intrinsic::icall_branch_funnel, {});
 1599   Function *TypeTestFunc = Intrinsic::getDeclaration(&M, Intrinsic::type_test);
lib/Transforms/InstCombine/InstCombineAddSub.cpp
 1082     return Intrinsic::getDeclaration(I.getModule(), Intrinsic::uadd_sat, Ty);
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  110   Function *F = Intrinsic::getDeclaration(I.getModule(), Intrinsic::bswap,
 2085   Function *F = Intrinsic::getDeclaration(Or.getModule(), IID, Or.getType());
lib/Transforms/InstCombine/InstCombineCalls.cpp
  806       Function *F = Intrinsic::getDeclaration(M, Intrinsic::x86_sse4a_extrqi);
  907     Function *F = Intrinsic::getDeclaration(M, Intrinsic::x86_sse4a_insertqi);
 1193     Function *F = Intrinsic::getDeclaration(II.getModule(), ID, II.getType());
 1721         Intrinsic::getDeclaration(II->getModule(), *Action.IID, Tys), Args);
 1836           CI.setCalledFunction(Intrinsic::getDeclaration(M, MemCpyID, Tys));
 1970         Function *Fshl = Intrinsic::getDeclaration(Mod, Intrinsic::fshl, Ty);
 1990         Function *Bswap = Intrinsic::getDeclaration(Mod, Intrinsic::bswap, Ty);
 3689         Function *NewF = Intrinsic::getDeclaration(
 3785           Intrinsic::getDeclaration(II->getModule(), NewIID,
lib/Transforms/InstCombine/InstCombineCasts.cpp
  572   Function *F = Intrinsic::getDeclaration(Trunc.getModule(), IID, DestTy);
 1661       Function *Overload = Intrinsic::getDeclaration(FPT.getModule(),
 2446           Intrinsic::getDeclaration(CI.getModule(), Intrinsic::bswap, DestTy);
lib/Transforms/InstCombine/InstCombineCompares.cpp
 1315   Function *F = Intrinsic::getDeclaration(
 3646   Function *F = Intrinsic::getDeclaration(
 4684   Function *F = Intrinsic::getDeclaration(
lib/Transforms/InstCombine/InstCombineSelect.cpp
  825   Function *F = Intrinsic::getDeclaration(II->getModule(), Intrinsic::cttz,
 2072   Function *F = Intrinsic::getDeclaration(MinMax1.getModule(), IntrinsicID, NewTy);
 2186   Function *F = Intrinsic::getDeclaration(Sel.getModule(), IID, Sel.getType());
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
 1040   Function *NewIntrin = Intrinsic::getDeclaration(M, IID, OverloadTys);
lib/Transforms/InstCombine/InstructionCombining.cpp
 2417       Function *F = Intrinsic::getDeclaration(M, Intrinsic::donothing);
lib/Transforms/Instrumentation/AddressSanitizer.cpp
  982       Function *DynamicAreaOffsetFunc = Intrinsic::getDeclaration(
lib/Transforms/Instrumentation/BoundsChecking.cpp
  188     auto *F = Intrinsic::getDeclaration(Fn->getParent(), Intrinsic::trap);
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
  620     IRB.CreateCall(Intrinsic::getDeclaration(
  838   auto GetStackPointerFn = Intrinsic::getDeclaration(
  909         Intrinsic::getDeclaration(M, Intrinsic::thread_pointer);
  974     auto GetStackPointerFn = Intrinsic::getDeclaration(
 1023       Intrinsic::getDeclaration(M, Intrinsic::read_register, IntptrTy);
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 2596     Function *BswapFunc = Intrinsic::getDeclaration(
 2803     Function *ShadowFn = Intrinsic::getDeclaration(
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
  825         Intrinsic::getDeclaration(M, Intrinsic::instrprof_increment),
  863           Intrinsic::getDeclaration(M, Intrinsic::instrprof_value_profile),
 1354       Intrinsic::getDeclaration(M, Intrinsic::instrprof_increment_step),
lib/Transforms/Instrumentation/SanitizerCoverage.cpp
  891     Function *GetFrameAddr = Intrinsic::getDeclaration(
lib/Transforms/Instrumentation/ThreadSanitizer.cpp
  505         Intrinsic::getDeclaration(F.getParent(), Intrinsic::returnaddress),
lib/Transforms/ObjCARC/ARCRuntimeEntryPoints.h
  138     return Decl = Intrinsic::getDeclaration(TheModule, IntID);
lib/Transforms/Scalar/InferAddressSpaces.cpp
  273         Intrinsic::getDeclaration(M, II->getIntrinsicID(), {DestTy, SrcTy});
lib/Transforms/Scalar/LoopDataPrefetch.cpp
  315       Function *PrefetchFunc = Intrinsic::getDeclaration(
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
 1640   Function *Func = Intrinsic::getDeclaration(M, Intrinsic::ctpop, Tys);
 1654   Function *Func = Intrinsic::getDeclaration(M, IID, Tys);
lib/Transforms/Scalar/LowerGuardIntrinsic.cpp
   58   auto *DeoptIntrinsic = Intrinsic::getDeclaration(
lib/Transforms/Scalar/MakeGuardsExplicit.cpp
   95   auto *DeoptIntrinsic = Intrinsic::getDeclaration(
lib/Transforms/Scalar/MemCpyOptimizer.cpp
 1246   M->setCalledFunction(Intrinsic::getDeclaration(M->getModule(),
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
 1298     return Intrinsic::getDeclaration(M, Intrinsic::experimental_gc_relocate,
lib/Transforms/Scalar/Scalarizer.cpp
  489   return Intrinsic::getDeclaration(M, ID, { Ty->getScalarType() });
lib/Transforms/Utils/CodeExtractor.cpp
 1045     auto StartFn = llvm::Intrinsic::getDeclaration(
 1051     auto EndFn = llvm::Intrinsic::getDeclaration(
lib/Transforms/Utils/EntryExitInstrumenter.cpp
   46         Intrinsic::getDeclaration(&M, Intrinsic::returnaddress),
lib/Transforms/Utils/InlineFunction.cpp
 2012     Function *StackSave = Intrinsic::getDeclaration(M, Intrinsic::stacksave);
 2013     Function *StackRestore=Intrinsic::getDeclaration(M,Intrinsic::stackrestore);
 2125       Function *NewDeoptIntrinsic = Intrinsic::getDeclaration(
lib/Transforms/Utils/IntegerDivision.cpp
  182   Function *CTLZ = Intrinsic::getDeclaration(F->getParent(), Intrinsic::ctlz,
lib/Transforms/Utils/Local.cpp
 1920       Intrinsic::getDeclaration(BB->getParent()->getParent(), Intrinsic::trap);
 2864     Function *F = Intrinsic::getDeclaration(I->getModule(), Intrin, DemandedTy);
 2881   Function *F = Intrinsic::getDeclaration(I->getModule(), Intrin, ITy);
lib/Transforms/Utils/PromoteMemoryToRegister.cpp
  306       Intrinsic::getDeclaration(LI->getModule(), Intrinsic::assume);
lib/Transforms/Utils/SimplifyLibCalls.cpp
 1223   Function *F = Intrinsic::getDeclaration(M, IID, CI->getType());
 1299     Function *Fn = Intrinsic::getDeclaration(M, IID, B.getFloatTy());
 1345   Function *FSqrt = Intrinsic::getDeclaration(CI->getModule(), Intrinsic::sqrt,
 1485               ? B.CreateCall(Intrinsic::getDeclaration(Mod, ID, Ty),
 1531         return B.CreateCall(Intrinsic::getDeclaration(Mod, Intrinsic::exp2, Ty),
 1558         return B.CreateCall(Intrinsic::getDeclaration(Mod, Intrinsic::exp2, Ty),
 1575         Intrinsic::getDeclaration(M, Intrinsic::sqrt, V->getType());
 1608     Function *FAbsFn = Intrinsic::getDeclaration(Mod, Intrinsic::fabs, Ty);
 1631   Function *F = Intrinsic::getDeclaration(M, Intrinsic::powi, Base->getType());
 1807   Function *F = Intrinsic::getDeclaration(CI->getModule(), IID, CI->getType());
 1927             ? B.CreateCall(Intrinsic::getDeclaration(Mod, LogID, Ty),
 1950                       ? B.CreateCall(Intrinsic::getDeclaration(Mod, LogID, Ty),
 2018   Function *Fabs = Intrinsic::getDeclaration(M, Intrinsic::fabs, ArgType);
 2024     Function *Sqrt = Intrinsic::getDeclaration(M, Intrinsic::sqrt, ArgType);
 2204   Function *F = Intrinsic::getDeclaration(CI->getCalledFunction()->getParent(),
 2218   Function *F = Intrinsic::getDeclaration(CI->getCalledFunction()->getParent(),
lib/Transforms/Vectorize/LoopVectorize.cpp
 4302         VectorF = Intrinsic::getDeclaration(M, ID, TysForDecl);
lib/Transforms/Vectorize/SLPVectorizer.cpp
 4138       Function *CF = Intrinsic::getDeclaration(M, ID, Tys);
tools/clang/lib/CodeGen/CGBuiltin.cpp
 9457   llvm::Function *FnGetFieldInfo = llvm::Intrinsic::getDeclaration(
tools/clang/lib/CodeGen/CGDecl.cpp
 2310   LifetimeStartFn = llvm::Intrinsic::getDeclaration(&getModule(),
 2319   LifetimeEndFn = llvm::Intrinsic::getDeclaration(&getModule(),
tools/clang/lib/CodeGen/CGException.cpp
 1723     llvm::Function *FrameRecoverFn = llvm::Intrinsic::getDeclaration(
tools/clang/lib/CodeGen/CGExpr.cpp
 3176       llvm::Intrinsic::getDeclaration(M, llvm::Intrinsic::trap), "", BB);
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
  623       llvm::Intrinsic::getDeclaration(
  631       llvm::Intrinsic::getDeclaration(
  656       llvm::Intrinsic::getDeclaration(
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  379     llvm::Function *FrameEscapeFn = llvm::Intrinsic::getDeclaration(
 2345              llvm::Intrinsic::getDeclaration(
tools/clang/lib/CodeGen/CodeGenModule.cpp
 4577   return llvm::Intrinsic::getDeclaration(&getModule(), (llvm::Intrinsic::ID)IID,
tools/polly/lib/CodeGen/IslExprBuilder.cpp
  119     F = Intrinsic::getDeclaration(M, Intrinsic::sadd_with_overflow,
  123     F = Intrinsic::getDeclaration(M, Intrinsic::ssub_with_overflow,
  127     F = Intrinsic::getDeclaration(M, Intrinsic::smul_with_overflow,
tools/polly/lib/CodeGen/PerfMonitor.cpp
   61   return Intrinsic::getDeclaration(M, Intrinsic::x86_rdtscp);
tools/polly/lib/CodeGen/RuntimeDebugBuilder.cpp
   64       Intrinsic::getDeclaration(M, Intrinsic::nvvm_read_ptx_sreg_ctaid_x),
   65       Intrinsic::getDeclaration(M, Intrinsic::nvvm_read_ptx_sreg_ctaid_y),
   66       Intrinsic::getDeclaration(M, Intrinsic::nvvm_read_ptx_sreg_ctaid_z),
   80       Intrinsic::getDeclaration(M, Intrinsic::nvvm_read_ptx_sreg_tid_x),
   81       Intrinsic::getDeclaration(M, Intrinsic::nvvm_read_ptx_sreg_tid_y),
   82       Intrinsic::getDeclaration(M, Intrinsic::nvvm_read_ptx_sreg_tid_z),
unittests/Analysis/MemorySSATest.cpp
 1236     return Intrinsic::getDeclaration(&M, ID, {Foo->getType()});
unittests/IR/BasicBlockTest.cpp
  103   Function *DbgAddr = Intrinsic::getDeclaration(M, Intrinsic::dbg_addr);
  104   Function *DbgDeclare = Intrinsic::getDeclaration(M, Intrinsic::dbg_declare);
  105   Function *DbgValue = Intrinsic::getDeclaration(M, Intrinsic::dbg_value);