Details
- Reviewers
• tstellarAMD arsenm
Diff Detail
Event Timeline
include/llvm/IR/IntrinsicsAMDGPU.td | ||
---|---|---|
181 | Could we add a LLVMMatchType to get an int the same width as the FP type to avoid a second mangled parameter? Also could we just leave it as i32? I think it just zeroes the high 16-bits anyway |
include/llvm/IR/IntrinsicsAMDGPU.td | ||
---|---|---|
181 | Hi Matt, I do not think I understand your suggestion entirely (LLVMMatchType part of it), can you explain it a bit more? We could leave i32 in the return type of the intrinsic and change V_FREXP_EXP_I16_F16 to VOP_I32_F16 and higher 16 bits will be zeroed. |
include/llvm/IR/IntrinsicsAMDGPU.td | ||
---|---|---|
181 | I think we would need to add another one that would be simple to implement in TableGen, something like a LLVMMatchIntFPBitWidth<>. However, we don't actually want that because in the f64 case it's still i32 (which is also part of why I don't understand why this would have been changed to return i16) |
Could we add a LLVMMatchType to get an int the same width as the FP type to avoid a second mangled parameter? Also could we just leave it as i32? I think it just zeroes the high 16-bits anyway