Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| mlir/include/mlir/EDSC/Intrinsics.h | ||
|---|---|---|
| 208 | Please make sure the name corresponds to the instruction name, e.g. ConstantOp should be just constant. | |
| mlir/include/mlir/EDSC/Intrinsics.h | ||
|---|---|---|
| 208 | this breaks the build, please fix the other use case: llvm-project/mlir/lib/Conversion/LinalgToLLVM/LinalgToLLVM.cpp: In member function ‘virtual mlir::PatternMatchResult {anonymous}::SliceOpConversion::matchAndRewrite(mlir::Operation*, llvm::ArrayRef<mlir::Value>, mlir::ConversionPatternRewriter&) const’:
llvm-project/mlir/lib/Conversion/LinalgToLLVM/LinalgToLLVM.cpp:268:9: error: reference to ‘constant’ is ambiguous
268 | constant(int64Ty, rewriter.getIntegerAttr(rewriter.getIndexType(), 0));
| ^~~~~~~~
In file included from llvm-project/mlir/lib/Conversion/LinalgToLLVM/LinalgToLLVM.cpp:20:
llvm-project/mlir/include/mlir/EDSC/Intrinsics.h:203:7: note: candidates are: ‘using constant = struct mlir::edsc::intrinsics::ValueBuilder<mlir::ConstantOp>’
203 | using constant = ValueBuilder<ConstantOp>;
| ^~~~~~~~
llvm-project/mlir/lib/Conversion/LinalgToLLVM/LinalgToLLVM.cpp:54:7: note: ‘using constant = struct mlir::edsc::intrinsics::ValueBuilder<mlir::LLVM::ConstantOp>’
54 | using constant = ValueBuilder<mlir::LLVM::ConstantOp>;
| ^~~~~~~~ | |
| mlir/include/mlir/EDSC/Intrinsics.h | ||
|---|---|---|
| 208 | Thanks for catching this. | |
Comment Actions
My apologies for the delay..
Also, please note that https://github.com/llvm/llvm-project/commit/75394e1301dd1d4739a24d440e9996c52e5b5570#diff-6635fa1a5b0b10edf6e511585c7c986d refactored things significantly on the EDSC front so this would need a rebase.
Please make sure the name corresponds to the instruction name, e.g. ConstantOp should be just constant.