Skip to content

Commit afd42a1

Browse files
committed
Port atomicexpandpass to new PM
1 parent 371a8c5 commit afd42a1

File tree

64 files changed

+654
-584
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+654
-584
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
//===- AtomicExpand.h ------------------------------------------*- 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+
/// \file
9+
///
10+
///
11+
///
12+
//===----------------------------------------------------------------------===//
13+
14+
#ifndef LLVM_CODEGEN_ATOMICEXPAND_H
15+
#define LLVM_CODEGEN_ATOMICEXPAND_H
16+
17+
#include "llvm/IR/PassManager.h"
18+
19+
namespace llvm {
20+
21+
class Function;
22+
class TargetMachine;
23+
24+
class AtomicExpandPass : public PassInfoMixin<AtomicExpandPass> {
25+
private:
26+
const TargetMachine *TM;
27+
28+
public:
29+
AtomicExpandPass(const TargetMachine *TM) : TM(TM) {}
30+
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
31+
};
32+
33+
} // end namespace llvm
34+
35+
#endif // LLVM_CODEGEN_ATOMICEXPAND_H

llvm/include/llvm/CodeGen/Passes.h

Lines changed: 449 additions & 449 deletions
Large diffs are not rendered by default.

llvm/include/llvm/InitializePasses.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void initializeAlwaysInlinerLegacyPassPass(PassRegistry&);
5454
void initializeAssignmentTrackingAnalysisPass(PassRegistry &);
5555
void initializeAssumeBuilderPassLegacyPassPass(PassRegistry &);
5656
void initializeAssumptionCacheTrackerPass(PassRegistry&);
57-
void initializeAtomicExpandPass(PassRegistry&);
57+
void initializeAtomicExpandLegacyPass(PassRegistry &);
5858
void initializeBasicBlockPathCloningPass(PassRegistry &);
5959
void initializeBasicBlockSectionsProfileReaderPass(PassRegistry &);
6060
void initializeBasicBlockSectionsPass(PassRegistry &);

0 commit comments

Comments
 (0)