circt/test/Dialect/SV
Hideto Ueno 1a404d6056
[SV] Add DPI import op (#7005)
This PR adds an op `sv.func.dpi.import` for "emitting" DPI import statement. `sv.func.dpi.import` doesn't declare function but it takes a function symbol to emit import statement. This design is similar to what `sv.macro.ref/def` does and it enables us to decouple function declaration and emission. 

```
// CHECK-LABEL: import "DPI-C" linkage_name = function void function_declare1(
// CHECK-NEXT:    input [1:0] in_0,
// CHECK-NEXT:                out_0,
// CHECK-NEXT:                in_1,
// CHECK-NEXT:    output out_1
// CHECK-NEXT: );
sv.func.dpi.import linkage "linkage_name" @function_declare1
```
2024-05-16 18:53:46 +09:00
..
EliminateInOutPorts [HW] Change printer for modules (#6205) 2023-09-28 16:30:15 -05:00
basic.mlir [SV] Add DPI import op (#7005) 2024-05-16 18:53:46 +09:00
canonicalization.mlir [NFC][SV] Declare macros in most SV tests 2024-03-04 04:13:01 -08:00
cse.mlir [HW] Change printer for modules (#6205) 2023-09-28 16:30:15 -05:00
errors.mlir [SV] Add DPI import op (#7005) 2024-05-16 18:53:46 +09:00
generates.mlir [HW] Change printer for modules (#6205) 2023-09-28 16:30:15 -05:00
hw-cleanup.mlir [NFC][SV] Declare macros in most SV tests 2024-03-04 04:13:01 -08:00
hw-export-module-hierarchy.mlir [Namespace] Return an empty string for empty string. (#6284) 2023-10-12 05:25:56 +09:00
hw-extract-test-code-error.mlir [HW] Change printer for modules (#6205) 2023-09-28 16:30:15 -05:00
hw-extract-test-code.mlir [SV][Verif] Extract verif ops in SVExtractTestCode (#6865) 2024-03-24 00:54:24 -04:00
hw-generator-callout-error.mlir Whitespace cleanup in test/ and *.td, NFC 2021-07-09 18:24:57 -04:00
hw-generator-callout.mlir [HW] Change printer for modules (#6205) 2023-09-28 16:30:15 -05:00
hw-legalize-modules-packed-arrays.mlir [HWLegalizeModules] Lower types-like packed array handling (#5355) (#6402) 2023-11-11 03:04:19 +09:00
interfaces.mlir [HW] Change printer for modules (#6205) 2023-09-28 16:30:15 -05:00
prettify-verilog.mlir [NFC][SV] Declare macros in most SV tests 2024-03-04 04:13:01 -08:00
sv-trace-iverilog.mlir [SV] Add iverilog trace instrumentation pass (#4013) 2022-09-30 12:00:54 +02:00