[PATCH] D135202: [IR] Add an opaque type to LLVM.

Joshua Cranmer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 4 14:54:05 PDT 2022


jcranmer-intel created this revision.
Herald added a reviewer: deadalnix.
Herald added subscribers: jdoerfert, hiraditya.
Herald added a project: All.
jcranmer-intel requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Opaque types represent types that need to be preserved through optimization, but
otherwise are not introspectable by target-independent optimizations. This patch
doesn't add any uses of these opaque types by an existing backends, it only
provides basic infrastructure such that these types would work correctly.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D135202

Files:
  llvm/docs/BitCodeFormat.rst
  llvm/docs/LangRef.rst
  llvm/include/llvm-c/Core.h
  llvm/include/llvm/AsmParser/LLParser.h
  llvm/include/llvm/Bitcode/LLVMBitCodes.h
  llvm/include/llvm/IR/DataLayout.h
  llvm/include/llvm/IR/DerivedTypes.h
  llvm/include/llvm/IR/Type.h
  llvm/lib/AsmParser/LLParser.cpp
  llvm/lib/Bitcode/Reader/BitcodeReader.cpp
  llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
  llvm/lib/IR/AsmWriter.cpp
  llvm/lib/IR/Constants.cpp
  llvm/lib/IR/Core.cpp
  llvm/lib/IR/DataLayout.cpp
  llvm/lib/IR/Function.cpp
  llvm/lib/IR/LLVMContextImpl.h
  llvm/lib/IR/Type.cpp
  llvm/lib/Transforms/Scalar/SROA.cpp
  llvm/lib/Transforms/Utils/VNCoercion.cpp
  llvm/test/Assembler/invalid-opaque-type-mixed.ll
  llvm/test/Assembler/opaque-type-params.ll
  llvm/test/Assembler/opaque-types.ll
  llvm/test/Transforms/GVN/opaque-type.ll
  llvm/test/Transforms/SROA/sroa-opaque.ll
  llvm/tools/llvm-c-test/echo.cpp
  llvm/unittests/IR/TypesTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135202.465173.patch
Type: text/x-patch
Size: 32590 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221004/0a365eec/attachment.bin>


More information about the llvm-commits mailing list