[all-commits] [llvm/llvm-project] 39613c: [mlir] Expose Value hierarchy to C API

ftynse via All-commits all-commits at lists.llvm.org
Tue Oct 20 00:39:32 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 39613c2cbc8f11ff6246211385134f0a548b5b57
      https://github.com/llvm/llvm-project/commit/39613c2cbc8f11ff6246211385134f0a548b5b57
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2020-10-20 (Tue, 20 Oct 2020)

  Changed paths:
    M mlir/include/mlir-c/IR.h
    M mlir/lib/CAPI/IR/IR.cpp
    M mlir/test/CAPI/ir.c

  Log Message:
  -----------
  [mlir] Expose Value hierarchy to C API

The Value hierarchy consists of BlockArgument and OpResult, both of which
derive Value. Introduce IsA functions and functions specific to each class,
similarly to other class hierarchies. Also, introduce functions for
pointer-comparison of Block and Operation that are necessary for testing and
are generally useful.

Reviewed By: stellaraccident, mehdi_amini

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




More information about the All-commits mailing list