We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v0.0.66
19
MacOS
Vast codegen fails to identify return stmt in the function body because it only looks into the last effective stmt of the scope. Ref:
vast/lib/vast/CodeGen/CodeGenFunction.cpp
Line 258 in 27d3596
It can be reproduced with following snippet of code
static unsigned int var_error; static unsigned int var_1; unsigned int func(void) { unsigned int local_c; goto basic_0; basic_3: return local_c; basic_2: local_c = 0U; goto basic_3; basic_0: if (var_error == 0U) goto basic_1; else goto basic_2; basic_1: local_c = var_1; goto basic_3; }
cat << EOF > test.c static unsigned int var_error; static unsigned int var_1; unsigned int func(void) { unsigned int local_c; goto basic_0; basic_3: return local_c; basic_2: local_c = 0U; goto basic_3; basic_0: if (var_error == 0U) goto basic_1; else goto basic_2; basic_1: local_c = var_1; goto basic_3; } EOF // Emit hl mlir ./tools/vast-front/vast-front -vast-emit-mlir=hl test.c -o test.mlir
The text was updated successfully, but these errors were encountered:
No branches or pull requests
VAST version
v0.0.66
LLVM version
19
Operating system
MacOS
Description
Vast codegen fails to identify return stmt in the function body because it only looks into the last effective stmt of the scope. Ref:
vast/lib/vast/CodeGen/CodeGenFunction.cpp
Line 258 in 27d3596
It can be reproduced with following snippet of code
Steps to Reproduce
The text was updated successfully, but these errors were encountered: