| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[flang][hlfir] Fixed KindMapping for HLFIR intrinsics lowering. hlfir.count lowering was using incorrect default integer kind by ignoring the kind specified in the ModuleOp. Reviewed By: tblah Differential Revision: https://reviews.llvm.org/D156017 | 2 年前 | |
[mlir] Support lowering of dialect attributes attached to top-level modules This patch supports the processing of dialect attributes attached to top-level module-type operations during MLIR-to-LLVMIR lowering. This approach modifies the mlir::translateModuleToLLVMIR() function to call ModuleTranslation::convertOperation() on the top-level operation, after its body has been lowered. This, in turn, will get the LLVMTranslationDialectInterface object associated to that operation's dialect before trying to use it for lowering prior to processing dialect attributes attached to the operation. Since there are no LLVMTranslationDialectInterfaces for the builtin and GPU dialects, which define their own module-type operations, this patch also adds and registers them. The requirement for always calling mlir::registerBuiltinDialectTranslation() before any translation of MLIR to LLVM IR where builtin module operations are present is introduced. The purpose of these new translation interfaces is to succeed when processing module-type operations, allowing the lowering process to continue and to prevent the introduction of failures related to not finding such interfaces. Differential Revision: https://reviews.llvm.org/D145932 | 3 年前 | |
Break circular dependency between FIR dialect and utilities | 3 年前 | |
Revert "Revert "[Flang][OpenMP][MLIR] Add declare target attribute set and interface for the OpenMP dialect"" This reverts commit aa6b47cdaf3cddc70b7af33c1edbda502ecb3d05. And adds a fix (adding missing libraries to CMakeLists.txt for the OpenMPDialect) that allows failing builds to succeed. | 3 年前 | |
Finish renaming getOperandSegmentSizeAttr() from operand_segment_sizes to operandSegmentSizes This renaming started with the native ODS support for properties, this is completing it. A mass automated textual rename seems safe for most codebases. Drop also the ods prefix to keep the accessors the same as they were before this change: properties.odsOperandSegmentSizes reverts back to: properties.operandSegementSizes The ODS prefix was creating divergence between all the places and make it harder to be consistent. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D157173 | 2 年前 | |
[flang] Represent unknown extent correctly in getTypeAsString Reviewed By: razvanlupusoru Differential Revision: https://reviews.llvm.org/D155655 | 2 年前 | |
mlir/tblgen: use std::optional in generation This is part of an effort to migrate from llvm::Optional to std::optional. This patch changes the way mlir-tblgen generates .inc files, and modifies tests and documentation appropriately. It is a "no compromises" patch, and doesn't leave the user with an unpleasant mix of llvm::Optional and std::optional. A non-trivial change has been made to ControlFlowInterfaces to split one constructor into two, relating to a build failure on Windows. See also: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716 Signed-off-by: Ramkumar Ramachandra <r@artagnon.com> Differential Revision: https://reviews.llvm.org/D138934 | 3 年前 | |
[mlir] Add operations to BlockAndValueMapping and rename it to IRMapping The patch adds operations to BlockAndValueMapping and renames it to IRMapping. When operations are cloned, old operations are mapped to the cloned operations. This allows mapping from an operation to a cloned operation. Example: Operation *opWithRegion = ... Operation *opInsideRegion = &opWithRegion->front().front(); IRMapping map Operation *newOpWithRegion = opWithRegion->clone(map); Operation *newOpInsideRegion = map.lookupOrNull(opInsideRegion); Migration instructions: All includes to mlir/IR/BlockAndValueMapping.h should be replaced with mlir/IR/IRMapping.h. All uses of BlockAndValueMapping need to be renamed to IRMapping. Reviewed By: rriddle, mehdi_amini Differential Revision: https://reviews.llvm.org/D139665 | 3 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 2 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 3 年前 | ||
| 3 年前 |