[clang] [CIR] Add `InlineAsmOp` (PR #153362)
Iris Shi via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 13 20:22:25 PDT 2025
================
@@ -2239,6 +2239,89 @@ def CIR_StackRestoreOp : CIR_Op<"stackrestore"> {
let assemblyFormat = "$ptr attr-dict `:` qualified(type($ptr))";
}
+//===----------------------------------------------------------------------===//
+// InlineAsmOp
+//===----------------------------------------------------------------------===//
+
+def CIR_AsmFlavor : CIR_I32EnumAttr<"AsmFlavor", "ATT or Intel",
+ [I32EnumAttrCase<"x86_att", 0>,
+ I32EnumAttrCase<"x86_intel", 1>]>;
+
+def CIR_InlineAsmOp : CIR_Op<"asm", [RecursiveMemoryEffects]> {
+ let description = [{
+ The `cir.asm` operation represents C/C++ asm inline.
+
+ CIR constraints strings follow barely the same rules that are established
----------------
el-ev wrote:
All fixed, thanks!
https://github.com/llvm/llvm-project/pull/153362
More information about the cfe-commits
mailing list