mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
2d3ee56e42
This patch adds a new IRTransformations directory to llvm/examples/. This is intended to serve as a new home for example transformations/analysis code used by various tutorials. If LLVM_BUILD_EXAMPLES is enabled, the ExamplesIRTransforms library is linked into the opt binary and the example passes become available. To start off with, it contains the CFG simplifications used in the IR part of the 'Getting Started With LLVM: Basics' tutorial at the US LLVM Developers Meeting 2019. Reviewers: paquette, jfb, meikeb, lhames, kbarton Reviewed By: paquette Differential Revision: https://reviews.llvm.org/D69416
25 lines
723 B
C++
25 lines
723 B
C++
//===- SimplifyCFG.h - Tutorial SimplifyCFG ---------------------*- 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_EXAMPLES_IRTRANSFORMS_SIMPLIFYCFG__H
|
|
#define LLVM_EXAMPLES_IRTRANSFORMS_SIMPLIFYCFG__H
|
|
|
|
#include "llvm/Pass.h"
|
|
#include "llvm/PassRegistry.h"
|
|
|
|
namespace llvm {
|
|
|
|
FunctionPass *createSimplifyCFGPass();
|
|
|
|
void initializeSimplifyCFGLegacyPassPass(PassRegistry &);
|
|
|
|
} // end namespace llvm
|
|
|
|
#endif // LLVM_EXAMPLES_IRTRANSFORMS_SIMPLIFYCFG__H
|