llvmir.inline_asm
← llvmir dialect
Structured LLVM inline assembly call. The asm template and constraint strings use LLVM inline asm syntax; operands/results remain ordinary typed Loom SSA values.
Operation contract
| Property |
Value |
| Semantic phase |
— |
| Traits |
UnknownEffects |
Signature
| Kind |
Name |
Type |
Cardinality |
Description |
| Operand |
operands |
any |
variadic |
— |
| Result |
results |
any |
variadic |
— |
| Attribute |
flags |
flags AsmFlags |
optional |
— |
| Attribute |
asm_template |
string |
required |
LLVM inline asm template string. |
| Attribute |
constraints |
string |
required |
LLVM inline asm constraint string. |
Examples
%sum = llvmir.inline_asm<sideeffect> "addl $2, $0", "=r,r,r"(%lhs, %rhs) : (i32, i32) -> i32