TTobias Gysi[mlir][llvm] Add branch weight op interface
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[mlir][SPIRVToLLVM] Add pass option to emit opaque-pointers Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179 This patch adds the pass option and required changes to the patterns to support the emission of LLVM IR opaque pointers. Given how close SPIRV semantics are to LLVM IR semantics this boils down to just a few changes: * Making sure that GEP and alloca are built with the explicit base pointer type * creating opaque pointers instead of typed pointers if requested * omitting pointer to pointer bitcasts Differential Revision: https://reviews.llvm.org/D143900 | 3 年前 | |
[mlir][SPIRVToLLVM] Add pass option to emit opaque-pointers Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179 This patch adds the pass option and required changes to the patterns to support the emission of LLVM IR opaque pointers. Given how close SPIRV semantics are to LLVM IR semantics this boils down to just a few changes: * Making sure that GEP and alloca are built with the explicit base pointer type * creating opaque pointers instead of typed pointers if requested * omitting pointer to pointer bitcasts Differential Revision: https://reviews.llvm.org/D143900 | 3 年前 | |
[mlir][SPIRVToLLVM] Add pass option to emit opaque-pointers Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179 This patch adds the pass option and required changes to the patterns to support the emission of LLVM IR opaque pointers. Given how close SPIRV semantics are to LLVM IR semantics this boils down to just a few changes: * Making sure that GEP and alloca are built with the explicit base pointer type * creating opaque pointers instead of typed pointers if requested * omitting pointer to pointer bitcasts Differential Revision: https://reviews.llvm.org/D143900 | 3 年前 | |
[mlir][SPIRVToLLVM] Add pass option to emit opaque-pointers Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179 This patch adds the pass option and required changes to the patterns to support the emission of LLVM IR opaque pointers. Given how close SPIRV semantics are to LLVM IR semantics this boils down to just a few changes: * Making sure that GEP and alloca are built with the explicit base pointer type * creating opaque pointers instead of typed pointers if requested * omitting pointer to pointer bitcasts Differential Revision: https://reviews.llvm.org/D143900 | 3 年前 | |
[mlir][SPIRVToLLVM] Add pass option to emit opaque-pointers Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179 This patch adds the pass option and required changes to the patterns to support the emission of LLVM IR opaque pointers. Given how close SPIRV semantics are to LLVM IR semantics this boils down to just a few changes: * Making sure that GEP and alloca are built with the explicit base pointer type * creating opaque pointers instead of typed pointers if requested * omitting pointer to pointer bitcasts Differential Revision: https://reviews.llvm.org/D143900 | 3 年前 | |
[mlir][llvm] Add branch weight op interface This revision adds a branch weight op interface for the call / branch operations that support branch weights. It can be used in the LLVM IR import and export to simplify the branch weight conversion. An additional mapping between call operations and instructions ensures the actual conversion can be done in the module translation itself, rather than in the dialect translation interface. It also has the benefit that downstream users can amend custom metadata to the call operation during the export to LLVM IR. Reviewed By: zero9178, definelicht Differential Revision: https://reviews.llvm.org/D155702 | 2 年前 | |
[mlir][SPIRVToLLVM] Add pass option to emit opaque-pointers Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179 This patch adds the pass option and required changes to the patterns to support the emission of LLVM IR opaque pointers. Given how close SPIRV semantics are to LLVM IR semantics this boils down to just a few changes: * Making sure that GEP and alloca are built with the explicit base pointer type * creating opaque pointers instead of typed pointers if requested * omitting pointer to pointer bitcasts Differential Revision: https://reviews.llvm.org/D143900 | 3 年前 | |
[mlir][SPIRVToLLVM] Add pass option to emit opaque-pointers Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179 This patch adds the pass option and required changes to the patterns to support the emission of LLVM IR opaque pointers. Given how close SPIRV semantics are to LLVM IR semantics this boils down to just a few changes: * Making sure that GEP and alloca are built with the explicit base pointer type * creating opaque pointers instead of typed pointers if requested * omitting pointer to pointer bitcasts Differential Revision: https://reviews.llvm.org/D143900 | 3 年前 | |
[mlir][SPIRVToLLVM] Add pass option to emit opaque-pointers Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179 This patch adds the pass option and required changes to the patterns to support the emission of LLVM IR opaque pointers. Given how close SPIRV semantics are to LLVM IR semantics this boils down to just a few changes: * Making sure that GEP and alloca are built with the explicit base pointer type * creating opaque pointers instead of typed pointers if requested * omitting pointer to pointer bitcasts Differential Revision: https://reviews.llvm.org/D143900 | 3 年前 | |
[mlir][llvm] Ensure immediate usage in intrinsics This commit changes intrinsics that have immarg parameter attributes to model these parameters as attributes, instead of operands. Using operands only works if the operation is an llvm.mlir.constant, otherwise the exported LLVMIR is invalid. Reviewed By: gysit Differential Revision: https://reviews.llvm.org/D151692 | 3 年前 | |
[mlir][SPIRVToLLVM] Add pass option to emit opaque-pointers Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179 This patch adds the pass option and required changes to the patterns to support the emission of LLVM IR opaque pointers. Given how close SPIRV semantics are to LLVM IR semantics this boils down to just a few changes: * Making sure that GEP and alloca are built with the explicit base pointer type * creating opaque pointers instead of typed pointers if requested * omitting pointer to pointer bitcasts Differential Revision: https://reviews.llvm.org/D143900 | 3 年前 | |
[mlir][SPIRVToLLVM] Add pass option to emit opaque-pointers Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179 This patch adds the pass option and required changes to the patterns to support the emission of LLVM IR opaque pointers. Given how close SPIRV semantics are to LLVM IR semantics this boils down to just a few changes: * Making sure that GEP and alloca are built with the explicit base pointer type * creating opaque pointers instead of typed pointers if requested * omitting pointer to pointer bitcasts Differential Revision: https://reviews.llvm.org/D143900 | 3 年前 | |
[mlir][SPIRVToLLVM] Add pass option to emit opaque-pointers Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179 This patch adds the pass option and required changes to the patterns to support the emission of LLVM IR opaque pointers. Given how close SPIRV semantics are to LLVM IR semantics this boils down to just a few changes: * Making sure that GEP and alloca are built with the explicit base pointer type * creating opaque pointers instead of typed pointers if requested * omitting pointer to pointer bitcasts Differential Revision: https://reviews.llvm.org/D143900 | 3 年前 | |
[mlir][SPIRVToLLVM] Add pass option to emit opaque-pointers Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179 This patch adds the pass option and required changes to the patterns to support the emission of LLVM IR opaque pointers. Given how close SPIRV semantics are to LLVM IR semantics this boils down to just a few changes: * Making sure that GEP and alloca are built with the explicit base pointer type * creating opaque pointers instead of typed pointers if requested * omitting pointer to pointer bitcasts Differential Revision: https://reviews.llvm.org/D143900 | 3 年前 | |
[mlir][SPIRVToLLVM] Add pass option to emit opaque-pointers Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179 This patch adds the pass option and required changes to the patterns to support the emission of LLVM IR opaque pointers. Given how close SPIRV semantics are to LLVM IR semantics this boils down to just a few changes: * Making sure that GEP and alloca are built with the explicit base pointer type * creating opaque pointers instead of typed pointers if requested * omitting pointer to pointer bitcasts Differential Revision: https://reviews.llvm.org/D143900 | 3 年前 | |
[mlir][SPIRVToLLVM] Add pass option to emit opaque-pointers Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179 This patch adds the pass option and required changes to the patterns to support the emission of LLVM IR opaque pointers. Given how close SPIRV semantics are to LLVM IR semantics this boils down to just a few changes: * Making sure that GEP and alloca are built with the explicit base pointer type * creating opaque pointers instead of typed pointers if requested * omitting pointer to pointer bitcasts Differential Revision: https://reviews.llvm.org/D143900 | 3 年前 | |
[mlir][SPIRVToLLVM] Add pass option to emit opaque-pointers Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179 This patch adds the pass option and required changes to the patterns to support the emission of LLVM IR opaque pointers. Given how close SPIRV semantics are to LLVM IR semantics this boils down to just a few changes: * Making sure that GEP and alloca are built with the explicit base pointer type * creating opaque pointers instead of typed pointers if requested * omitting pointer to pointer bitcasts Differential Revision: https://reviews.llvm.org/D143900 | 3 年前 | |
[mlir][SPIRVToLLVM] Add pass option to emit opaque-pointers Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179 This patch adds the pass option and required changes to the patterns to support the emission of LLVM IR opaque pointers. Given how close SPIRV semantics are to LLVM IR semantics this boils down to just a few changes: * Making sure that GEP and alloca are built with the explicit base pointer type * creating opaque pointers instead of typed pointers if requested * omitting pointer to pointer bitcasts Differential Revision: https://reviews.llvm.org/D143900 | 3 年前 |