[PATCH] D105453: [mlir][System_Z] Disable `-fno-semantic-interposition` option.
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 6 10:24:23 PDT 2021
MaskRay added a comment.
In D105453#2859200 <https://reviews.llvm.org/D105453#2859200>, @imaihal wrote:
> After D102453 <https://reviews.llvm.org/D102453>, MLIR installation test (`cmake --build . --target check-mlir`) issues 32 errors on SystemZ with GCC. This errors can be avoided by disabling `fno-semantic-interposition`. I used g++ (Ubuntu 9.4.0-1ubuntu1~18.04) 9.4.0.
>
> One of the errors is as follows. Also in other errors, operands seems to be broken.
>
> llvm-project/mlir/test/Conversion/GPUCommon/lower-memcpy-to-gpu-runtime-calls.mlir:13:11: error: 'llvm.getelementptr' op expected 1 or more operands
> %t1 = gpu.memcpy async [%t0] %dst, %src : memref<7xf32, 1>, memref<7xf32>
>
> Following is generated inc file (`LLVMOps.cpp.inc`). I think the `operands` is broken, but when I inserted printf here, the error disappears.
>
> void GEPOp::build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, Type resultType, ValueRange operands, ArrayRef<NamedAttribute> attributes ) {
> if (resultType) odsState.addTypes(resultType);
> odsState.addOperands(operands);
> for (auto namedAttr : attributes) {
> odsState.addAttribute(namedAttr.first, namedAttr.second);
> }
>
> }
>
> Hi, @MaskRay This patch modifies your patch (D102453 <https://reviews.llvm.org/D102453>). Do you have any suggestions or comments?
I don't mind. I suspect there is a gcc SystemZ bug but I don't have access to a SystemZ machine.
Worth filing a gcc bug.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105453/new/
https://reviews.llvm.org/D105453
More information about the llvm-commits
mailing list