We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0179aa5 commit 6c987dbCopy full SHA for 6c987db
mlir/include/mlir/Dialect/EmitC/IR/EmitC.td
@@ -802,14 +802,12 @@ def EmitC_LiteralOp : EmitC_Op<"literal", [Pure]> {
802
Example:
803
804
```mlir
805
- %x = "emitc.variable"() <{value = #emitc.opaque<"">}> : () -> !emitc.lvalue<i32>
806
- %one = literal "1" : i32
807
- "emitc.assign"(%x, %one) : (!emitc.lvalue<i32>, i32) -> ()
+ %p0 = emitc.literal "M_PI" : f32
+ %1 = "emitc.add" (%arg0, %p0) : (f32, f32) -> f32
808
```
809
```c++
810
// Code emitted for the operation above.
811
- int32_t v1;
812
- v1 = 1;
+ float v2 = v1 + M_PI;
813
814
}];
815
0 commit comments