Skip to content

Declaring empty external functions #291

Closed Answered by raviqqe
jmintb asked this question in Q&A
Discussion options

You must be logged in to vote

You can pass an empty region as a body of the func.func operation (i.e. Region::new().) BTW, the example in the documentation seems to be wrong as FAQ and symbol visibility documentation actually says external function definitions must have private visibility. https://mlir.llvm.org/getting_started/Faq/#whats-with-op-symbol-declaration-cannot-have-public-visibility

See also #292.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jmintb
Comment options

Answer selected by raviqqe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants