[all-commits] [llvm/llvm-project] 295172: [OpaquePtr][LLParser] Automatically detect opaque ...

aeubanks via All-commits all-commits at lists.llvm.org
Thu Mar 17 08:42:28 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 295172ef51c6b9a73bc0fdcfd25f8c41ead9034a
      https://github.com/llvm/llvm-project/commit/295172ef51c6b9a73bc0fdcfd25f8c41ead9034a
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2022-03-17 (Thu, 17 Mar 2022)

  Changed paths:
    M llvm/include/llvm/AsmParser/LLLexer.h
    M llvm/include/llvm/AsmParser/LLParser.h
    M llvm/include/llvm/IR/LLVMContext.h
    M llvm/lib/AsmParser/LLLexer.cpp
    M llvm/lib/AsmParser/LLParser.cpp
    M llvm/lib/IR/LLVMContext.cpp
    M llvm/lib/IR/LLVMContextImpl.cpp
    M llvm/lib/IR/LLVMContextImpl.h
    M llvm/test/Assembler/ptr-outside-opaque-pointers-mode.ll
    A llvm/test/Bitcode/opaque-ptr.ll
    R llvm/test/Other/force-opaque-ptrs-typed-dis.ll
    A llvm/test/Other/mixed-opaque-ptrs-2.ll
    A llvm/test/Other/mixed-opaque-ptrs.ll

  Log Message:
  -----------
  [OpaquePtr][LLParser] Automatically detect opaque pointers in .ll files

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 looking for relevant tokens,
either "ptr" or "*".

Reviewed By: #opaque-pointers, nikic

Differential Revision: https://reviews.llvm.org/D119482




More information about the All-commits mailing list