[llvm] [SPIR-V] Emit ceil(Bitwidth / 32) words during OpConstant creation (PR #180218)
Juan Manuel Martinez CaamaƱo via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 9 04:12:40 PST 2026
================
@@ -21,3 +27,10 @@ entry:
store i128 0, ptr addrspace(4) %p, align 16
ret void
}
+
+define spir_func void @test_i96_const(ptr addrspace(4) %p) addrspace(4) {
----------------
jmmartinez wrote:
Would it be possible to have an i97 or i104 or something with a bitwidth not a multiple of 32?
I'm think that for the last word maybe we have to mask it such that we do not consider extra bits in the APInt's raw data. (I suppose APInt sets everything to 0 though and it may be safe).
https://github.com/llvm/llvm-project/pull/180218
More information about the llvm-commits
mailing list