Skip to content

Commit e125ad4

Browse files
[CIR][NFC] Add example for get_bitfield with volatile qualifier
1 parent 0c0aa56 commit e125ad4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,6 +1773,9 @@ def GetBitfieldOp : CIR_Op<"get_bitfield"> {
17731773

17741774
A unit attribute `volatile` can be used to indicate a volatile load of the
17751775
bitfield.
1776+
```mlir
1777+
cir.get_bitfield(#bfi, %0 {is_volatile} : !cir.ptr<!u64i>) -> !s32i
1778+
```
17761779

17771780
Example:
17781781
Suppose we have a struct with multiple bitfields stored in

0 commit comments

Comments
 (0)