Adding examples for each of the generic opcodes involved in memory operations. Yet to add examples for some of the opcodes.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Time | Test | |
---|---|---|
880 ms | x64 debian > libomp.lock::omp_init_lock.c |
Event Timeline
llvm/docs/GlobalISel/GenericOpcode.rst | ||
---|---|---|
656 | I don't think you need to change this. | |
662 | I think for this example, you want to use G_ZEXTLOAD. You'll also want a memoperand. E.g. %load:_(s64) = G_LOAD %ptr(p0) :: (load (s32)) ; High 32 bits are undefined. %load:_(s64) = G_SEXTLOAD %ptr(p0) :: (load (s32)) ; High 32 bits are sign-extended. %load:_(s64) = G_ZEXTLOAD %ptr(p0) :: (load (s32)) ; High 32 bits are zero-extended. | |
672 | Can we change GEP to G_PTR_ADD? | |
676 | I think I'd drop this part and only have G_INDEXED_LOAD examples. Or, I'd make it clear that these are being combined to a G_INDEXED_LOAD. I'd also add an example for the post-indexed G_INDEXED_LOAD. | |
709 | I think it's fine as is. | |
713 | I don't think we need to show the original G_STORE + G_PTR_ADD in the example. Only the G_INDEXED_STORE. |
Hello. Was busy with my placements and final year project. Should I commit this patch or does it need any further changes?
FYI, it seems like a branch containing this patch was accidentally pushed to GitHub: https://github.com/llvm/llvm-project/tree/arcpatch-D108319
I don't think you need to change this.