[all-commits] [llvm/llvm-project] beb889: Make array pointers in the CAPI const

George Lyon via All-commits all-commits at lists.llvm.org
Thu Nov 19 11:57:31 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: beb889c1ffe68aee8d42c0ddbcd85d021963fb62
      https://github.com/llvm/llvm-project/commit/beb889c1ffe68aee8d42c0ddbcd85d021963fb62
  Author: George <>
  Date:   2020-11-19 (Thu, 19 Nov 2020)

  Changed paths:
    M mlir/include/mlir-c/IR.h
    M mlir/include/mlir-c/StandardAttributes.h
    M mlir/include/mlir-c/StandardTypes.h
    M mlir/lib/CAPI/IR/IR.cpp
    M mlir/lib/CAPI/IR/StandardAttributes.cpp
    M mlir/lib/CAPI/IR/StandardTypes.cpp

  Log Message:
  -----------
  Make array pointers in the CAPI const

These pointers do not need to be mutable. This has an affect that generated function signatures in the Swift bindings now use `UnsafePointer` instead of `UnsafeMutablePointer`.

Reviewed By: ftynse, mehdi_amini

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




More information about the All-commits mailing list