diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
commit | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (patch) | |
tree | 64175d5cadab313b3e7039ebaa06c5bc3295e274 /contrib/libs/llvm12/include/llvm/IR/PrintPasses.h | |
parent | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (diff) | |
download | ydb-e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/llvm12/include/llvm/IR/PrintPasses.h')
-rw-r--r-- | contrib/libs/llvm12/include/llvm/IR/PrintPasses.h | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/contrib/libs/llvm12/include/llvm/IR/PrintPasses.h b/contrib/libs/llvm12/include/llvm/IR/PrintPasses.h index 5ca9b30e3a..4f6de26f12 100644 --- a/contrib/libs/llvm12/include/llvm/IR/PrintPasses.h +++ b/contrib/libs/llvm12/include/llvm/IR/PrintPasses.h @@ -1,55 +1,55 @@ -#pragma once - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wunused-parameter" -#endif - -//===- PrintPasses.h - Determining whether/when to print IR ---------------===// -// -// 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_IR_PRINTPASSES_H -#define LLVM_IR_PRINTPASSES_H - -#include "llvm/ADT/StringRef.h" -#include <vector> - -namespace llvm { - -// Returns true if printing before/after some pass is enabled, whether all -// passes or a specific pass. -bool shouldPrintBeforeSomePass(); -bool shouldPrintAfterSomePass(); - -// Returns true if we should print before/after a specific pass. The argument -// should be the pass ID, e.g. "instcombine". -bool shouldPrintBeforePass(StringRef PassID); -bool shouldPrintAfterPass(StringRef PassID); - -// Returns true if we should print before/after all passes. -bool shouldPrintBeforeAll(); -bool shouldPrintAfterAll(); - -// The list of passes to print before/after, if we only want to print -// before/after specific passes. -std::vector<std::string> printBeforePasses(); -std::vector<std::string> printAfterPasses(); - -// Returns true if we should always print the entire module. -bool forcePrintModuleIR(); - -// Returns true if we should print the function. -bool isFunctionInPrintList(StringRef FunctionName); - -} // namespace llvm - -#endif // LLVM_IR_PRINTPASSES_H - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif +#pragma once + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-parameter" +#endif + +//===- PrintPasses.h - Determining whether/when to print IR ---------------===// +// +// 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_IR_PRINTPASSES_H +#define LLVM_IR_PRINTPASSES_H + +#include "llvm/ADT/StringRef.h" +#include <vector> + +namespace llvm { + +// Returns true if printing before/after some pass is enabled, whether all +// passes or a specific pass. +bool shouldPrintBeforeSomePass(); +bool shouldPrintAfterSomePass(); + +// Returns true if we should print before/after a specific pass. The argument +// should be the pass ID, e.g. "instcombine". +bool shouldPrintBeforePass(StringRef PassID); +bool shouldPrintAfterPass(StringRef PassID); + +// Returns true if we should print before/after all passes. +bool shouldPrintBeforeAll(); +bool shouldPrintAfterAll(); + +// The list of passes to print before/after, if we only want to print +// before/after specific passes. +std::vector<std::string> printBeforePasses(); +std::vector<std::string> printAfterPasses(); + +// Returns true if we should always print the entire module. +bool forcePrintModuleIR(); + +// Returns true if we should print the function. +bool isFunctionInPrintList(StringRef FunctionName); + +} // namespace llvm + +#endif // LLVM_IR_PRINTPASSES_H + +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif |