3 Star 9 Fork 1

Gitee 极速下载 / llvm-mctoll

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/Microsoft/llvm-mctoll
克隆/下载
EmitRaisedOutputPass.h 1.77 KB
一键复制 编辑 原始数据 按行查看 历史
//===-- EmitRaisedOutputPass.h ----------------------------------*- 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
//
//===----------------------------------------------------------------------===//
//
// This file contains the declaration of EmitRaisedOutputPass for use by
// llvm-mctoll. This class is provided to inhibit printing of target line
// and keep the resulting output architecture-neutral.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_MCTOLL_EMITRAISEDOUTPUTPASS_H
#define LLVM_TOOLS_LLVM_MCTOLL_EMITRAISEDOUTPUTPASS_H
#include "llvm/Bitcode/BitcodeWriterPass.h"
#include "llvm/IR/IRPrintingPasses.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/PassManager.h"
#include "llvm/Pass.h"
#include "llvm/Support/CodeGen.h"
#include "llvm/Target/TargetMachine.h"
using namespace llvm;
class EmitRaisedOutputPass : public ModulePass {
CodeGenFileType OutFileType;
PrintModulePass PrintAsmPass;
BitcodeWriterPass PrintBitCodePass;
public:
static char ID;
EmitRaisedOutputPass()
: ModulePass(ID), OutFileType(CGFT_Null), PrintBitCodePass(dbgs()) {}
EmitRaisedOutputPass(raw_ostream &OS, CodeGenFileType CGFT,
const std::string &Banner = "",
bool ShouldPreserveUseListOrder = false)
: ModulePass(ID), OutFileType(CGFT),
PrintAsmPass(OS, Banner, ShouldPreserveUseListOrder),
PrintBitCodePass(OS, ShouldPreserveUseListOrder) {}
bool runOnModule(Module &M) override;
void getAnalysisUsage(AnalysisUsage &AU) const override;
};
#endif // LLVM_TOOLS_LLVM_MCTOLL_EMITRAISEDOUTPUTPASS_H
C/C++
1
https://gitee.com/mirrors/llvm-mctoll.git
git@gitee.com:mirrors/llvm-mctoll.git
mirrors
llvm-mctoll
llvm-mctoll
master

搜索帮助