Don't check that types match when the pointer operand is an opaque
pointer.
I would separate the Assembler and Verifier changes, but
verify-uselistorder in the Assembler test ends up running the verifier.
Paths
| Differential D102450
[OpaquePtr] Make loads and stores work with opaque pointers ClosedPublic Authored by aeubanks on May 13 2021, 3:51 PM.
Details Summary Don't check that types match when the pointer operand is an opaque I would separate the Assembler and Verifier changes, but
Diff Detail
Event Timeline
Comment Actions factor out check for pointee type
aeubanks added inline comments.
This revision is now accepted and ready to land.May 18 2021, 1:11 PM This revision was landed with ongoing or failed builds.May 18 2021, 1:48 PM Closed by commit rG6013d84392fa: [OpaquePtr] Make loads and stores work with opaque pointers (authored by aeubanks). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 345927 llvm/include/llvm/IR/DerivedTypes.h
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/IR/Instructions.cpp
llvm/lib/IR/Type.cpp
llvm/lib/IR/Verifier.cpp
llvm/test/Assembler/opaque-ptr.ll
|
Reckon there's anything we could do to generalize these sort of tests - if we're going to add a whole bunch of them through this migration (& then remove them once we've moved over to opaque pointer types), maybe there are some good primitives we could create?
Like "hasElementTypeOrOpaque(PtrType, PointeeType)"?