[all-commits] [llvm/llvm-project] 2138c9: [IR] Move support for dxil::TypedPointerType to LL...

Joshua Cranmer via All-commits all-commits at lists.llvm.org
Thu Aug 4 07:42:24 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2138c906458ed37f0f833b1c7dda1bc6c6be8236
      https://github.com/llvm/llvm-project/commit/2138c906458ed37f0f833b1c7dda1bc6c6be8236
  Author: Joshua Cranmer <joshua.cranmer at intel.com>
  Date:   2022-08-04 (Thu, 04 Aug 2022)

  Changed paths:
    M llvm/include/llvm/IR/LLVMContext.h
    M llvm/include/llvm/IR/Type.h
    A llvm/include/llvm/IR/TypedPointerType.h
    M llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
    M llvm/lib/IR/AsmWriter.cpp
    M llvm/lib/IR/CMakeLists.txt
    M llvm/lib/IR/Core.cpp
    M llvm/lib/IR/LLVMContext.cpp
    M llvm/lib/IR/LLVMContextImpl.h
    A llvm/lib/IR/TypedPointerType.cpp
    M llvm/lib/IR/Value.cpp
    M llvm/lib/Target/DirectX/CMakeLists.txt
    R llvm/lib/Target/DirectX/DXILPointerType.cpp
    R llvm/lib/Target/DirectX/DXILPointerType.h
    M llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
    M llvm/lib/Target/DirectX/DXILWriter/DXILValueEnumerator.cpp
    M llvm/lib/Target/DirectX/PointerTypeAnalysis.h
    M llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp
    M llvm/unittests/IR/TypesTest.cpp
    M llvm/unittests/Target/DirectX/PointerTypeAnalysisTests.cpp

  Log Message:
  -----------
  [IR] Move support for dxil::TypedPointerType to LLVM core IR.

This allows the construct to be shared between different backends. However, it
still remains illegal to use TypedPointerType in LLVM IR--the type is intended
to remain an auxiliary type, not a real LLVM type. So no support is provided for
LLVM-C, nor bitcode, nor LLVM assembly (besides the bare minimum needed to make
Type->dump() work properly).

Reviewed By: beanz, nikic, aeubanks

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




More information about the All-commits mailing list