Add lowering support for inserting pointers or scalars into scalars, vectors or pointers
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I added a check to fail for non-integral address space pointers. I couldn't add any tests since the datalayout used in the unit tests doesn't have any non-integral address space pointers (or at least I didn't see any). Hope that's not a problem.
| llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-insert.mir | ||
|---|---|---|
| 1298 | Should this have been triggering a verifier error? Is there a missing check for source type == dest type? | |
| llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-insert.mir | ||
|---|---|---|
| 1298 | I guess so. I'd say that casting only makes sense when the types change. Might be worth to look into in a follow up. | |
| llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-insert.mir | ||
|---|---|---|
| 1298 | I agree. G_BITCAST shouldn't be valid for the same type on operand and result | |
This should probably fail for a non integral address space