1 //===-- CanonicalizeAliases.h - Alias Canonicalization Pass -----*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 // This file canonicalizes aliases.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_TRANSFORMS_UTILS_CANONICALIZE_ALIASES_H
14 #define LLVM_TRANSFORMS_UTILS_CANONICALIZE_ALIASES_H
16 #include "llvm/IR/Module.h"
17 #include "llvm/IR/PassManager.h"
21 /// Simple pass that canonicalizes aliases.
22 class CanonicalizeAliasesPass
: public PassInfoMixin
<CanonicalizeAliasesPass
> {
24 CanonicalizeAliasesPass() = default;
26 PreservedAnalyses
run(Module
&M
, ModuleAnalysisManager
&AM
);
29 } // end namespace llvm
31 #endif // LLVM_TRANSFORMS_UTILS_CANONICALIZE_ALIASESH