[all-commits] [llvm/llvm-project] 12a271: [mlir][LLVM] Support opaque pointers in `llvm.mlir...

zero9178 via All-commits all-commits at lists.llvm.org
Mon Apr 25 03:23:34 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 12a27169535aae8f815849814d8811292908f654
      https://github.com/llvm/llvm-project/commit/12a27169535aae8f815849814d8811292908f654
  Author: Markus Böck <markus.boeck02 at gmail.com>
  Date:   2022-04-25 (Mon, 25 Apr 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
    M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
    M mlir/test/Dialect/LLVMIR/global.mlir
    M mlir/test/Dialect/LLVMIR/invalid.mlir

  Log Message:
  -----------
  [mlir][LLVM] Support opaque pointers in `llvm.mlir.addressof`

The verifier of llvm.mlir.addressof did not properly account for opaque pointers, that is, the pointer type not having an element type equal to the type of the referenced global or function. This patch fixes that by skipping the test for the element type if the pointer is opaque.

Differential Revision: https://reviews.llvm.org/D124333




More information about the All-commits mailing list