Skip to content

Conversation

@mgehre-amd
Copy link
Collaborator

A emitc.tu represents a translation unit that can be emitted
into a single C++ file.

mlir-translate emits only the translation unit selected via
the -translation-unit-id=id flag. By default, no translation units are
emitted.

Example:

emitc.tu "main" {
  emitc.func @func_one() {
    emitc.return
  }
}

Copy link
Collaborator

@josel-amd josel-amd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@TinaAMD TinaAMD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mgehre-amd mgehre-amd merged commit cab7e24 into feature/fused-ops Nov 6, 2024
5 checks passed
@mgehre-amd mgehre-amd deleted the matthias.emitc_tu branch November 6, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants