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
12 lines
256 B
MLIR
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 }
|
|
}
|
|
|