Skip to content

Commit 6ddc170

Browse files
example
1 parent 905c12d commit 6ddc170

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

clang/include/clang/CIR/Dialect/IR/CIROps.td

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4716,6 +4716,14 @@ def CIR_VACopyOp : CIR_Op<"va.copy"> {
47164716
Example:
47174717

47184718
```mlir
4719+
```mlir
4720+
// %args : !cir.ptr<!cir.array<!rec___va_list_tag x 1>>
4721+
%p = cir.cast array_to_ptrdecay %args
4722+
: !cir.ptr<!cir.array<!rec___va_list_tag x 1>>
4723+
-> !cir.ptr<!rec___va_list_tag>
4724+
cir.va.copy %p to %dst
4725+
: (!cir.ptr<!rec___va_list_tag>, !cir.ptr<!rec___va_list_tag>)
4726+
```
47194727

47204728
```
47214729
}];

0 commit comments

Comments
 (0)