[PATCH] D145137: [SPIR-V] Promote arbitrary width ints to regular width

Michal Paszkowski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 1 18:37:41 PST 2023


mpaszkowski created this revision.
mpaszkowski added reviewers: iliya-diyachkov, zuban32, konrad.trifunovic, arsenm, MaskRay, rengolin, andreytr.
Herald added subscribers: ThomasRaoux, hiraditya.
Herald added a project: All.
mpaszkowski requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

After this patch all arbitrary size integers (smaller than 64 bits) in LLVM IR will be promoted to regular size type in SPIR-V (OpTypeInt 8/16/32/64).

Support for generating arbitrary size integer types in SPIR-V with SPV_INTEL_arbitrary_precision_integers extension will be added in the following patch.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D145137

Files:
  llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
  llvm/lib/Target/SPIRV/SPIRVISelLowering.cpp
  llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
  llvm/lib/Target/SPIRV/SPIRVUtils.cpp
  llvm/test/CodeGen/SPIRV/constant/local-arbitrary-width-integers-constants-type-promotion.ll
  llvm/test/CodeGen/SPIRV/constant/local-integers-constants.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145137.501728.patch
Type: text/x-patch
Size: 6369 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230302/7284df78/attachment.bin>


More information about the llvm-commits mailing list