Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions llvm/include/llvm/Transforms/KarinaMCount/KarinaMCount.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//===-- KarinaMCount.h - Example Transformations ------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_TRANSFORMS_KARINAMCOUNT_KARINAMCOUNT_H
#define LLVM_TRANSFORMS_KARINAMCOUNT_KARINAMCOUNT_H

#include "llvm/IR/PassManager.h"

namespace llvm {

class LPMUpdater;

class KarinaMCountPass : public PassInfoMixin<KarinaMCountPass> {
public:
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
};

} // namespace llvm

#endif // LLVM_TRANSFORMS_KARINAMCOUNT_KARINAMCOUNT_H
57 changes: 29 additions & 28 deletions llvm/lib/Passes/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
add_llvm_component_library(LLVMPasses
PassBuilder.cpp
PassBuilderBindings.cpp
PassPlugin.cpp
StandardInstrumentations.cpp

ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm
${LLVM_MAIN_INCLUDE_DIR}/llvm/Passes

DEPENDS
intrinsics_gen

LINK_COMPONENTS
AggressiveInstCombine
Analysis
Core
Coroutines
IPO
InstCombine
ObjCARC
Scalar
Support
Target
TransformUtils
Vectorize
Instrumentation
)
add_llvm_component_library(LLVMPasses
PassBuilder.cpp
PassBuilderBindings.cpp
PassPlugin.cpp
StandardInstrumentations.cpp

ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm
${LLVM_MAIN_INCLUDE_DIR}/llvm/Passes

DEPENDS
intrinsics_gen

LINK_COMPONENTS
AggressiveInstCombine
Analysis
Core
Coroutines
IPO
InstCombine
ObjCARC
Scalar
Support
Target
TransformUtils
Vectorize
Instrumentation
KarinaMCount
)
Loading