[PATCH] D79019: [mlir][llvm] allow mlir-translate carry custom triple and data layout.

Wen-Heng (Jack) Chung via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 28 09:39:13 PDT 2020


whchung created this revision.
whchung added reviewers: ftynse, nicolasvasilache.
Herald added subscribers: llvm-commits, Kayjukh, frgossen, grosul1, Joonsoo, liufengdb, lucyrfox, mgester, arpith-jacob, antiagainst, shauheen, jpienaar, rriddle, mehdi_amini, tpr.
Herald added a project: LLVM.

- Teach mlir-translate to use custom triple and data layout.
- Change convert-to-rocdlir pass to pass AMDGPU-specific triple and target layout string.
- Amend test case to check alloca on non-zero addrspace.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79019

Files:
  mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
  mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
  mlir/lib/Target/LLVMIR/ConvertToROCDLIR.cpp
  mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
  mlir/test/Target/rocdl.mlir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79019.260669.patch
Type: text/x-patch
Size: 5110 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200428/20221903/attachment.bin>


More information about the llvm-commits mailing list