[PATCH] D77072: [mlir] LLVMFuncOp: provide a capability to pass attributes through to LLVM IR
    Alex Zinenko via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Mar 30 10:16:33 PDT 2020
    
    
  
ftynse created this revision.
ftynse added a reviewer: nicolasvasilache.
Herald added subscribers: llvm-commits, Joonsoo, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini.
Herald added a project: LLVM.
LLVM IR functions can have arbitrary attributes attached to them, some of which
affect may affect code transformations. Until we can model all attributes
consistently, provide a pass-through mechanism that forwards attributes from
the LLVMFuncOp in MLIR to LLVM IR functions during translation. This mechanism
relies on LLVM IR being able to recognize string representations of the
attributes and performs some additional checking to avoid hitting assertions
within LLVM code.
Repository:
  rG LLVM Github Monorepo
https://reviews.llvm.org/D77072
Files:
  mlir/docs/Dialects/LLVM.md
  mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
  mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
  mlir/test/Target/llvmir-invalid.mlir
  mlir/test/Target/llvmir.mlir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77072.253622.patch
Type: text/x-patch
Size: 8119 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200330/a5146126/attachment-0001.bin>
    
    
More information about the llvm-commits
mailing list