Files
clang-p2996/mlir/test/Transforms/test-symbol-privatize.mlir
Jacques Pienaar 88c525235b [mlir] Add pass to privatize symbols unless excluded.
Simple pass that changes all symbols to private unless symbol is excluded (and
in which case there is no change to symbol's visibility).

Differential Revision: https://reviews.llvm.org/D118752
2022-02-03 20:20:54 -08:00

12 lines
256 B
MLIR

// RUN: mlir-opt %s -symbol-privatize=exclude="aap" | FileCheck %s
// CHECK-LABEL: module attributes {test.simple}
module attributes {test.simple} {
// CHECK: func @aap
func @aap() { return }
// CHECK: func private @kat
func @kat() { return }
}