[all-commits] [llvm/llvm-project] e21adf: [mlir] Mark LogicalResult as LLVM_NODISCARD
River Riddle via All-commits
all-commits at lists.llvm.org
Thu Feb 4 15:10:38 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e21adfa32d8822f9ea4058c3e365a841d87cb3ee
https://github.com/llvm/llvm-project/commit/e21adfa32d8822f9ea4058c3e365a841d87cb3ee
Author: River Riddle <riddleriver at gmail.com>
Date: 2021-02-04 (Thu, 04 Feb 2021)
Changed paths:
M mlir/include/mlir/IR/OpDefinition.h
M mlir/include/mlir/IR/SymbolTable.h
M mlir/include/mlir/Pass/PassManager.h
M mlir/include/mlir/Support/LogicalResult.h
M mlir/include/mlir/Transforms/DialectConversion.h
M mlir/include/mlir/Transforms/LoopUtils.h
M mlir/lib/Analysis/Presburger/Simplex.cpp
M mlir/lib/Conversion/AffineToStandard/AffineToStandard.cpp
M mlir/lib/Conversion/GPUToNVVM/LowerGpuOpsToNVVMOps.cpp
M mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp
M mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp
M mlir/lib/Conversion/SPIRVToLLVM/ConvertLaunchFuncToLLVMCalls.cpp
M mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp
M mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
M mlir/lib/Conversion/StandardToSPIRV/LegalizeStandardForSPIRV.cpp
M mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
M mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVMPass.cpp
M mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
M mlir/lib/Dialect/Affine/Transforms/AffineDataCopyGeneration.cpp
M mlir/lib/Dialect/Affine/Transforms/LoopTiling.cpp
M mlir/lib/Dialect/Affine/Transforms/LoopUnroll.cpp
M mlir/lib/Dialect/Affine/Transforms/LoopUnrollAndJam.cpp
M mlir/lib/Dialect/Affine/Transforms/SimplifyAffineStructures.cpp
M mlir/lib/Dialect/Affine/Transforms/SuperVectorize.cpp
M mlir/lib/Dialect/Affine/Utils/Utils.cpp
M mlir/lib/Dialect/GPU/Transforms/ParallelLoopMapper.cpp
M mlir/lib/Dialect/Linalg/Transforms/CodegenStrategy.cpp
M mlir/lib/Dialect/Linalg/Transforms/DropUnitDims.cpp
M mlir/lib/Dialect/Linalg/Transforms/FusionOnTensors.cpp
M mlir/lib/Dialect/Linalg/Transforms/Generalization.cpp
M mlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp
M mlir/lib/Dialect/Linalg/Transforms/Loops.cpp
M mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp
M mlir/lib/Dialect/Linalg/Transforms/Tiling.cpp
M mlir/lib/Dialect/Quant/Transforms/ConvertConst.cpp
M mlir/lib/Dialect/Quant/Transforms/ConvertSimQuant.cpp
M mlir/lib/Dialect/Shape/Transforms/RemoveShapeConstraints.cpp
M mlir/lib/Dialect/StandardOps/IR/Ops.cpp
M mlir/lib/Dialect/StandardOps/Transforms/DecomposeCallGraphTypes.cpp
M mlir/lib/Dialect/Tosa/Transforms/TosaMakeBroadcastable.cpp
M mlir/lib/IR/AsmPrinter.cpp
M mlir/lib/IR/BuiltinTypes.cpp
M mlir/lib/Pass/Pass.cpp
M mlir/lib/Support/MlirOptMain.cpp
M mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
M mlir/lib/Target/SPIRV/Deserialization/DeserializeOps.cpp
M mlir/lib/Target/SPIRV/Deserialization/Deserializer.cpp
M mlir/lib/Target/SPIRV/Serialization/Serialization.cpp
M mlir/lib/Transforms/Canonicalizer.cpp
M mlir/lib/Transforms/Inliner.cpp
M mlir/lib/Transforms/NormalizeMemRefs.cpp
M mlir/lib/Transforms/SCCP.cpp
M mlir/lib/Transforms/Utils/LoopFusionUtils.cpp
M mlir/lib/Transforms/Utils/LoopUtils.cpp
M mlir/lib/Translation/Translation.cpp
M mlir/test/lib/Dialect/Affine/TestAffineDataCopy.cpp
M mlir/test/lib/Dialect/Affine/TestVectorizationUtils.cpp
M mlir/test/lib/Dialect/SPIRV/TestGLSLCanonicalization.cpp
M mlir/test/lib/Dialect/Test/TestPatterns.cpp
M mlir/test/lib/Dialect/Test/TestTraits.cpp
M mlir/test/lib/Dialect/Tosa/TosaTestPasses.cpp
M mlir/test/lib/IR/TestSlicing.cpp
M mlir/test/lib/Transforms/TestConvVectorization.cpp
M mlir/test/lib/Transforms/TestDynamicPipeline.cpp
M mlir/test/lib/Transforms/TestExpandTanh.cpp
M mlir/test/lib/Transforms/TestGpuRewrite.cpp
M mlir/test/lib/Transforms/TestLinalgFusionTransforms.cpp
M mlir/test/lib/Transforms/TestLinalgTransforms.cpp
M mlir/test/lib/Transforms/TestLoopUnrolling.cpp
M mlir/test/lib/Transforms/TestMemRefBoundCheck.cpp
M mlir/test/lib/Transforms/TestSCFUtils.cpp
M mlir/test/lib/Transforms/TestSparsification.cpp
M mlir/test/lib/Transforms/TestVectorTransforms.cpp
M mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-gen.cpp
M mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp
M mlir/tools/mlir-vulkan-runner/VulkanRuntime.cpp
M mlir/unittests/Dialect/SPIRV/DeserializationTest.cpp
Log Message:
-----------
[mlir] Mark LogicalResult as LLVM_NODISCARD
This makes ignoring a result explicit by the user, and helps to prevent accidental errors with dropped results. Marking LogicalResult as no discard was always the intention from the beginning, but got lost along the way.
Differential Revision: https://reviews.llvm.org/D95841
More information about the All-commits
mailing list