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

Build failure with LLVM git - elementtype attribute missing #6546

Closed
LebedevRI opened this issue Jan 6, 2022 · 1 comment
Closed

Build failure with LLVM git - elementtype attribute missing #6546

LebedevRI opened this issue Jan 6, 2022 · 1 comment
Assignees

Comments

@LebedevRI
Copy link
Contributor

$ ninja -j1
[  1% 45/3183][  1% 0:00:00 + 0:00:08] Generating initmod.hvx_128.bc
FAILED: src/runtime/initmod.hvx_128.bc /builddirs/halide/build-Clang-Release-LLVMgit/src/runtime/initmod.hvx_128.bc 
cd /builddirs/halide/build-Clang-Release-LLVMgit/src/runtime && /builddirs/llvm-project/build-Clang13/bin/llvm-as /repositories/halide/src/runtime/hvx_128.ll -o initmod.hvx_128.bc
/builddirs/llvm-project/build-Clang13/bin/llvm-as: assembly parsed, but does not verify as correct!
Operand for indirect constraint must have elementtype attribute
  call void asm sideeffect "vmem($0 + #0):scatter_release\0A; v1 = vmem($0 + #0)\0A", "=*m,*m,~{v1}"(i8* %ptr, i8* %ptr)
ninja: build stopped: subcommand failed.

While the fix is straight-forward, said attribute only appeared in LLVM13, and LLVM12 (which is the oldest supported)
barfs on it: https://godbolt.org/z/EK6cb37n5

@steven-johnson
Copy link
Contributor

LLVM12 barfs on it

Ouch, that's going to make things slightly less pleasant, as we'll have to fork the files. Oh well.

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

2 participants