-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LLHD][NFC] Clean up some LLHD files (#7509)
- Loading branch information
Showing
12 changed files
with
166 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
//===- LLHDDialect.td - LLHD dialect definition ------------*- tablegen -*-===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// This is the top level file for the LLHD dialect. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef CIRCT_DIALECT_LLHD_IR_LLHDDIALECT_TD | ||
#define CIRCT_DIALECT_LLHD_IR_LLHDDIALECT_TD | ||
|
||
include "mlir/IR/DialectBase.td" | ||
|
||
//===----------------------------------------------------------------------===// | ||
// LLHD dialect definition | ||
//===----------------------------------------------------------------------===// | ||
|
||
def LLHDDialect : Dialect { | ||
let name = "llhd"; | ||
let cppNamespace = "::circt::llhd"; | ||
let dependentDialects = ["circt::hw::HWDialect"]; | ||
|
||
let description = [{ | ||
A low-level hardware description dialect in MLIR. | ||
}]; | ||
|
||
let hasConstantMaterializer = 1; | ||
let useDefaultTypePrinterParser = 1; | ||
let useDefaultAttributePrinterParser = 1; | ||
|
||
// Opt-out of properties for now, must migrate by LLVM 19. #5273. | ||
let usePropertiesForAttributes = 0; | ||
|
||
let extraClassDeclaration = [{ | ||
/// Register all LLHD types. | ||
void registerTypes(); | ||
/// Register all LLHD attributes. | ||
void registerAttributes(); | ||
}]; | ||
} | ||
|
||
class LLHDOp<string mnemonic, list<Trait> traits = []> | ||
: Op<LLHDDialect, mnemonic, traits>; | ||
|
||
#endif // CIRCT_DIALECT_LLHD_IR_LLHDDIALECT_TD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.