Make use of the getGEPIndicesForOffset() helper for creating GEPs. This handles arrays as well, uses correct GEP index types and reduces code duplication.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LG, thanks!
llvm/lib/Transforms/IPO/AttributorAttributes.cpp | ||
---|---|---|
197 | The TODO can now be removed I guess. |
llvm/lib/Transforms/IPO/AttributorAttributes.cpp | ||
---|---|---|
197 | There's probably still room for a higher-level abstraction that generates the actual GEP or bitcast + gep + bitcast sequence. |
The TODO can now be removed I guess.