ΒΆllvm::Function* getDeclaration(
    llvm::Module* M,
    llvm::Intrinsic::ID id,
    ArrayRef<llvm::Type*> Tys = None)

Description

Create or insert an LLVM Function declaration for an intrinsic, and return it. The Tys parameter is for intrinsics with overloaded types (e.g., those using iAny, fAny, vAny, or iPTRAny). For a declaration of an overloaded intrinsic, Tys must provide exactly one type for each overloaded type in the intrinsic.

Declared at: llvm/include/llvm/IR/Intrinsics.h:98

Parameters

llvm::Module* M
llvm::Intrinsic::ID id
ArrayRef<llvm::Type*> Tys = None