1 //===-- CanonicalizeAliases.h - Alias Canonicalization Pass -----*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file canonicalizes aliases.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_TRANSFORMS_UTILS_CANONICALIZEALIASES_H
14 #define LLVM_TRANSFORMS_UTILS_CANONICALIZEALIASES_H
15 
16 #include "llvm/IR/PassManager.h"
17 
18 namespace llvm {
19 
20 class Module;
21 
22 /// Simple pass that canonicalizes aliases.
23 class CanonicalizeAliasesPass : public PassInfoMixin<CanonicalizeAliasesPass> {
24 public:
25   CanonicalizeAliasesPass() = default;
26 
27   PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
28 };
29 
30 } // end namespace llvm
31 
32 #endif // LLVM_TRANSFORMS_UTILS_CANONICALIZEALIASES_H
33