Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flag to IRBuilder.if_else to control whether an "endif" block should be created #1031

Open
thomaspinckney3 opened this issue Feb 3, 2024 · 0 comments
Labels
feature_request Feature Request

Comments

@thomaspinckney3
Copy link
Contributor

thomaspinckney3 commented Feb 3, 2024


Feature request

When using the IRBuilder.if_else utility the endif block is always created. However, if there are no instructions following the if/else then this turns into an empty block. For example, the following C code results in an empty endif block.

int func() {
    if (something) {
          return 1;
    } else {
          return 2;
    }
}
@kc611 kc611 added the feature_request Feature Request label Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature_request Feature Request
Projects
None yet
Development

No branches or pull requests

2 participants