mirror of https://github.com/llvm/circt.git
1a404d6056
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 ``` |
||
---|---|---|
.. | ||
EliminateInOutPorts | ||
basic.mlir | ||
canonicalization.mlir | ||
cse.mlir | ||
errors.mlir | ||
generates.mlir | ||
hw-cleanup.mlir | ||
hw-export-module-hierarchy.mlir | ||
hw-extract-test-code-error.mlir | ||
hw-extract-test-code.mlir | ||
hw-generator-callout-error.mlir | ||
hw-generator-callout.mlir | ||
hw-legalize-modules-packed-arrays.mlir | ||
interfaces.mlir | ||
prettify-verilog.mlir | ||
sv-trace-iverilog.mlir |