| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[mlir][LLVM] Add the ConvertToLLVMAttrInterface and ConvertToLLVMOpInterface interfaces (#99566) This patch adds the ConvertToLLVMAttrInterface and ConvertToLLVMOpInterface interfaces. It also modifies the convert-to-llvm pass to use these interfaces when available. The ConvertToLLVMAttrInterface interfaces allows attributes to configure conversion to LLVM, including the conversion target, LLVM type converter, and populating conversion patterns. See the NVVMTargetAttr implementation of this interface for an example of how this interface can be used to configure conversion to LLVM. The ConvertToLLVMOpInterface interface collects all convert to LLVM attributes stored in an operation. Finally, the convert-to-llvm pass was modified to use these interfaces when available. This allows applying convert-to-llvm to GPU modules and letting the NVVMTargetAttr decide which patterns to populate. | 1 年前 | |
[mlir][ToLLVM] Fix the index bitwidth handling for the dynamic case of convert-to-llvm (#156557) This patch changes the behavior of convert-to-llvm{dynamic=true} so that the nearest DataLayout is used to configure LowerToLLVMOptions and LLVMTypeConverter. Example: mlir module attributes {dlti.dl_spec = #dlti.dl_spec<#dlti.dl_entry<index, 16>>} { func.func private @test_16bit_index(%arg0: index) -> index } // mlir-opt --convert-to-llvm="dynamic=true" module attributes {dlti.dl_spec = #dlti.dl_spec<index = 16 : i64>} { llvm.func @test_16bit_index(i16) -> i16 attributes {sym_visibility = "private"} } | 11 个月前 | |
[mlir] Remove unused includes (NFC) (#150476) These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-specific build failures. | 1 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 年前 | ||
| 11 个月前 | ||
| 1 年前 |