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

LLVM ERROR: unable to translate instruction: call #58

Open
iliya-diyachkov opened this issue Nov 1, 2021 · 1 comment
Open

LLVM ERROR: unable to translate instruction: call #58

iliya-diyachkov opened this issue Nov 1, 2021 · 1 comment
Assignees

Comments

@iliya-diyachkov
Copy link
Contributor

After 906a4a8 (#52) we have 7 compilation fails with "unable to translate instruction: call" on tests:

linkage-types.ll
layout.ll
llvm-intrinsics/instrprof.ll
llvm-intrinsics/constrained-comparison.ll
llvm-intrinsics/constrained-arithmetic.ll
llvm-intrinsics/constrained-convert.ll
transcoding/GlobalFunAnnotate.ll

and +4 after fixing "Broken function" issues (#57)

transcoding/annotate_attribute.ll
transcoding/spirv-private-array-initialization.ll
llvm-intrinsics/memcpy.align.ll
transcoding/spirv-private-array-initialization.ll

In transcoding/GlobalFunAnnotate.ll IRTranslator fails to convert llvm.spv.track.constant.a23i8.a23i8(...) to call due to a vector arg which "takes" more than one virtual reg (llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp:2398). I think the similar reasons causes fails on other tests.

@iliya-diyachkov
Copy link
Contributor Author

After 8b0831d we have only 3 tests failed in this way:

llvm-intrinsics/constrained-comparison.ll
llvm-intrinsics/constrained-arithmetic.ll
llvm-intrinsics/constrained-convert.ll

It's due to missed support of string metadata in IRTranslator::translateCall (IRTranslator.cpp) and no standard support of some experimental_constrained_* intrinsics that used in the tests.

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

No branches or pull requests

1 participant