You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In llvm-test/MultiSource/Applications/Burg, running "make bugpoint-gccas" or
bugpoint-gccld will emit raw llvm bytecode to standard out. This is thoroughly
unpleasant.
The text was updated successfully, but these errors were encountered:
* [MLIR] Attribute and type formats in ODS
Declarative attribute and type formats with assembly formats. Define an
`assemblyFormat` field in attribute and type defs with a `mnemonic` to
generate a parser and printer.
```tablegen
def MyAttr : AttrDef<MyDialect, "MyAttr"> {
let parameters = (ins "int64_t":$count, "AffineMap":$map);
let mnemonic = "my_attr";
let assemblyFormat = "`<` $count `,` $map `>`";
}
```
Use `struct` to define a comma-separated list of key-value pairs:
```tablegen
def MyType : TypeDef<MyDialect, "MyType"> {
let parameters = (ins "int":$one, "int":$two, "int":$three);
let mnemonic = "my_attr";
let assemblyFormat = "`<` $three `:` struct($one, $two) `>`";
}
```
Use `struct(*)` to capture all parameters.
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D111594
* [mlir][ods] AttrOrTypeDef format: parse types
Add template specialization to `FieldParser` for parsing types.
Reviewed By: mehdi_amini
Differential Revision: https://reviews.llvm.org/D113867
* [Flang] Sync after upstreaming FIR LLVMPointer Type
Changes include the following,
-> Use of assembly format for printer and parser
-> The assembly format worked better with the default Type::get
function with the context. Hence using that and removing the custom
builder. Updating usage.
-> Tests for the type and conversion to llvm
Reviewed By: clementval
Differential Revision: https://reviews.llvm.org/D113755
Co-authored-by: Jeff Niu <jeffniu@google.com>
Co-authored-by: Mogball <jeffniu22@gmail.com>
Extended Description
In llvm-test/MultiSource/Applications/Burg, running "make bugpoint-gccas" or
bugpoint-gccld will emit raw llvm bytecode to standard out. This is thoroughly
unpleasant.
The text was updated successfully, but these errors were encountered: