9#ifndef LLVM_SANDBOXIR_INTRINSICINST_H
10#define LLVM_SANDBOXIR_INTRINSICINST_H
22 return cast<llvm::IntrinsicInst>(
Val)->getIntrinsicID();
25 return cast<llvm::IntrinsicInst>(
Val)->isAssociative();
28 return cast<llvm::IntrinsicInst>(
Val)->isCommutative();
31 return cast<llvm::IntrinsicInst>(
Val)->isAssumeLikeIntrinsic();
38 return isa<llvm::IntrinsicInst>(LLVMV);
A wrapper class for inspecting calls to intrinsic functions.
static bool mayLowerToFunctionCall(Intrinsic::ID IID)
Check if the intrinsic might lower into a regular function call in the course of IR transformations.
friend class IntrinsicInst
bool isAssociative() const
bool isAssumeLikeIntrinsic() const
bool isCommutative() const
static bool mayLowerToFunctionCall(Intrinsic::ID IID)
static bool classof(const Value *V)
Intrinsic::ID getIntrinsicID() const
A SandboxIR Value has users. This is the base class.
llvm::Value * Val
The LLVM Value that corresponds to this SandboxIR Value.
Context & Ctx
All values point to the context.