Skip to content

Commit

Permalink
hl: Remove obsolete HighLevel_FlatSymbolReferringAttr.
Browse files Browse the repository at this point in the history
  • Loading branch information
xlauko committed Jan 10, 2025
1 parent 7f85a15 commit 7068fe6
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions include/vast/Dialect/HighLevel/HighLevelAttributes.td
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,6 @@ class HighLevel_SymbolReferringAttr<string name, string attr_mnemonic>
let assemblyFormat = "`<` $symbol `>`";
}

class HighLevel_FlatSymbolReferringAttr<string name, string attr_mnemonic>
: HighLevel_Attr< name, attr_mnemonic >
{
let parameters = (ins "::mlir::FlatSymbolRefAttr":$symbol);

let builders = [
AttrBuilderWithInferredContext<(ins "::mlir::FlatSymbolRefAttr":$symbol), [{
return get(symbol.getContext(), symbol);
}]>,
AttrBuilder<(ins "::mlir::StringRef":$symbol), [{
return get(mlir::FlatSymbolRefAttr::get($_ctxt, symbol));
}]>,
];

let assemblyFormat = "`<` $symbol `>`";
}

def HighLevel_AnnotationAttr : HighLevel_NameAttr< "Annotation", "annotation" >;
def HighLevel_FlattentAttr : HighLevel_Attr< "Flatten", "flatten" >;
def HighLevel_FormatAttr : HighLevel_NameAttr< "Format", "format" >;
Expand Down

0 comments on commit 7068fe6

Please sign in to comment.