[PATCH] D119482: [OpaquePtr][LLParser] Automatically detect opaque pointers in .ll files
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 10 14:11:35 PST 2022
aeubanks created this revision.
Herald added subscribers: dexonsmith, hiraditya.
aeubanks requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This allows us to not have to specify -opaque-pointers when updating
IR tests from typed pointers to opaque pointers.
We detect opaque pointers in .ll files by either looking for relevant tokens.
We lazily set LLVMContextImpl::OpaquePointers unless
-opaque-pointers[=0] is explicitly specified. We lazily set it based on
the first type of pointer created, whether opaque or typed.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D119482
Files:
llvm/include/llvm/AsmParser/LLLexer.h
llvm/include/llvm/AsmParser/LLParser.h
llvm/include/llvm/IR/LLVMContext.h
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/IR/LLVMContext.cpp
llvm/lib/IR/LLVMContextImpl.cpp
llvm/lib/IR/LLVMContextImpl.h
llvm/lib/IR/Type.cpp
llvm/test/Assembler/ptr-outside-opaque-pointers-mode.ll
llvm/test/Bitcode/opaque-ptr.ll
llvm/test/Other/force-opaque-ptrs-typed-dis.ll
llvm/test/Other/force-opaque-ptrs.ll
llvm/test/Other/mixed-opaque-ptrs.ll
llvm/test/Other/opaque-ptrs.ll
llvm/unittests/IR/TypesTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119482.407676.patch
Type: text/x-patch
Size: 9456 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220210/9d864d97/attachment.bin>
More information about the llvm-commits
mailing list