Skip to content

llvmir.intrinsic

llvmir dialect

Structured call to a supported LLVM intrinsic. The intrinsic spelling is a string so target-family providers can recognize their own intrinsics without extending a central enum.

Operation contract

Property Value
Semantic phase
Traits UnknownEffects

Signature

Kind Name Type Cardinality Description
Operand operands any variadic
Result results any variadic
Attribute kind string required LLVM intrinsic spelling, such as llvm.memcpy or llvm.amdgcn.workitem.id.x.

Examples

%ticks = llvmir.intrinsic<llvm.x86.rdtsc> () : () -> i64
llvmir.intrinsic<llvm.x86.sse2.pause> () : ()
llvmir.intrinsic<llvm.memcpy> (%target, %source, %length, %is_volatile) : (!buffer, !buffer, offset, i1)