aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJuneyoung Lee <aqjune@gmail.com>2024-01-09 23:54:43 -0600
committerGitHub <noreply@github.com>2024-01-09 23:54:43 -0600
commit7388b7422f9307dd5ae3fe3876a676d83d702daf (patch)
treede7e8bdfcbb1610c4b24f693838d1dec9c132893 /flang/lib/Frontend/CompilerInvocation.cpp
parentc2b57a052daee22cb6401bc7bc514d858ea11eb6 (diff)
downloadllvm-7388b7422f9307dd5ae3fe3876a676d83d702daf.zip
llvm-7388b7422f9307dd5ae3fe3876a676d83d702daf.tar.gz
llvm-7388b7422f9307dd5ae3fe3876a676d83d702daf.tar.bz2
[WebAssembly] Correctly consider signext/zext arg flags at function declaration (#77281)
This patch fixes WebAssembly's FastISel pass to correctly consider signext/zeroext parameter flags at function declaration. Previously, the flags at call sites were only considered during code generation, which caused an interesting bug report #63388 . This is problematic especially because in WebAssembly's ABI, either signext or zeroext can be tagged to a function argument, and it must be correctly reflected in the generated code. Unit test https://github.com/llvm/llvm-project/blob/main/llvm/test/CodeGen/WebAssembly/signext-zeroext.ll shows that `i8 zeroext %t` and `i8 signext %t`'s code gen are different.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions