[PATCH] D122268: Add PointerType analysis for DirectX backend

Chris Bieneman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 22 16:13:54 PDT 2022


beanz created this revision.
beanz added reviewers: MaskRay, tstellar, pete, jdoerfert, sheredom, kuhar, antiagainst, nhaehnle, rnk, nikic.
Herald added subscribers: StephenFan, dexonsmith, mgrang, hiraditya, mgorny.
Herald added a project: All.
beanz requested review of this revision.
Herald added a project: LLVM.

As implemented this patch assumes that Typed pointer support remains in
the llvm::PointerType class, however this could be modified to use a
different subclass of llvm::Type that could be disallowed from use in
other contexts.

This does not rely on inserting typed pointers into the Module, it just
uses the llvm::PointerType class to track and unique types.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122268

Files:
  llvm/include/llvm/IR/DerivedTypes.h
  llvm/lib/IR/Type.cpp
  llvm/lib/Target/DirectX/CMakeLists.txt
  llvm/lib/Target/DirectX/PointerTypeAnalysis.cpp
  llvm/lib/Target/DirectX/PointerTypeAnalysis.h
  llvm/unittests/Target/DirectX/CMakeLists.txt
  llvm/unittests/Target/DirectX/PointerTypeAnalysisTests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122268.417425.patch
Type: text/x-patch
Size: 13348 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220322/b356e60e/attachment-0001.bin>


More information about the llvm-commits mailing list