forked from OSchip/llvm-project
NFC: Add a description to the ODS interface example.
PiperOrigin-RevId: 270978748
This commit is contained in:
parent
635544fc12
commit
f7ad5b411c
|
@ -184,8 +184,15 @@ interface above as:
|
|||
|
||||
```tablegen
|
||||
def ExampleOpInterface : OpInterface<"ExampleOpInterface"> {
|
||||
let description = [{
|
||||
This is an example interface definition.
|
||||
}];
|
||||
|
||||
let methods = [
|
||||
InterfaceMethod<"unsigned", "getNumInputs">,
|
||||
InterfaceMethod<
|
||||
"Get the number of inputs for the current operation.",
|
||||
"unsigned", "getNumInputs"
|
||||
>,
|
||||
];
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue