google / google/xls

FFI: allow to choose not to emit ffi calls in IR

Open
#1,397 1 comment 0 reactions 0 assignees View on GitHub
enhancement ffi
Dominant language
C++
Stars
1.9k
Forks
283
Avg merge
2d 10h
Merged PRs (30d)
135

Description

Right now, if there is an FFI call annotation `#[extern_verilog(...)]` on a dslx function, it is always emitted to IR, is skipped in global optimization in opt-ir and ultimately emitted in codegen.

It would be good to have a flag in the ir-conversion and optimizer to ignore ffi calls and use the underlying dslx-IR. This allows a/b comparisons.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.