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/Transforms/Instrumentation | |
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/Transforms/Instrumentation')
9 files changed, 131 insertions, 131 deletions
diff --git a/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/AddressSanitizer.h b/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/AddressSanitizer.h index cd14ac66f5..46cbf49956 100644 --- a/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/AddressSanitizer.h +++ b/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/AddressSanitizer.h @@ -109,7 +109,7 @@ public: bool Recover = false, bool UseAfterScope = false); PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM); - static bool isRequired() { return true; } + static bool isRequired() { return true; } private: bool CompileKernel; @@ -130,7 +130,7 @@ public: bool UseGlobalGC = true, bool UseOdrIndicator = false); PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM); - static bool isRequired() { return true; } + static bool isRequired() { return true; } private: bool CompileKernel; diff --git a/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/BoundsChecking.h b/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/BoundsChecking.h index bb4d634cde..4661ea7779 100644 --- a/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/BoundsChecking.h +++ b/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/BoundsChecking.h @@ -24,7 +24,7 @@ namespace llvm { /// stores, and other memory intrinsics. struct BoundsCheckingPass : PassInfoMixin<BoundsCheckingPass> { PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM); - static bool isRequired() { return true; } + static bool isRequired() { return true; } }; diff --git a/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/DataFlowSanitizer.h b/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/DataFlowSanitizer.h index 38aa2d560b..b732dae51c 100644 --- a/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/DataFlowSanitizer.h +++ b/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/DataFlowSanitizer.h @@ -1,43 +1,43 @@ -#pragma once - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wunused-parameter" -#endif - -//===- DataFlowSanitizer.h - dynamic data flow analysis -------------------===// -// -// 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_INSTRUMENTATION_DATAFLOWSANITIZER_H -#define LLVM_TRANSFORMS_INSTRUMENTATION_DATAFLOWSANITIZER_H - -#include "llvm/IR/Module.h" -#include "llvm/IR/PassManager.h" -#include <string> -#include <vector> - -namespace llvm { - -class DataFlowSanitizerPass : public PassInfoMixin<DataFlowSanitizerPass> { -private: - std::vector<std::string> ABIListFiles; - -public: - DataFlowSanitizerPass( - const std::vector<std::string> &ABIListFiles = std::vector<std::string>()) - : ABIListFiles(ABIListFiles) {} - PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM); - static bool isRequired() { return true; } -}; - -} // namespace llvm - -#endif - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif +#pragma once + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-parameter" +#endif + +//===- DataFlowSanitizer.h - dynamic data flow analysis -------------------===// +// +// 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_INSTRUMENTATION_DATAFLOWSANITIZER_H +#define LLVM_TRANSFORMS_INSTRUMENTATION_DATAFLOWSANITIZER_H + +#include "llvm/IR/Module.h" +#include "llvm/IR/PassManager.h" +#include <string> +#include <vector> + +namespace llvm { + +class DataFlowSanitizerPass : public PassInfoMixin<DataFlowSanitizerPass> { +private: + std::vector<std::string> ABIListFiles; + +public: + DataFlowSanitizerPass( + const std::vector<std::string> &ABIListFiles = std::vector<std::string>()) + : ABIListFiles(ABIListFiles) {} + PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM); + static bool isRequired() { return true; } +}; + +} // namespace llvm + +#endif + +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif diff --git a/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/GCOVProfiler.h b/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/GCOVProfiler.h index 78024a30a3..70b3eea60b 100644 --- a/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/GCOVProfiler.h +++ b/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/GCOVProfiler.h @@ -33,7 +33,7 @@ private: GCOVOptions GCOVOpts; }; -} // namespace llvm +} // namespace llvm #endif #ifdef __GNUC__ diff --git a/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/HWAddressSanitizer.h b/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/HWAddressSanitizer.h index 585b6b84f0..a7011f14a5 100644 --- a/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/HWAddressSanitizer.h +++ b/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/HWAddressSanitizer.h @@ -34,7 +34,7 @@ public: explicit HWAddressSanitizerPass(bool CompileKernel = false, bool Recover = false); PreservedAnalyses run(Module &M, ModuleAnalysisManager &MAM); - static bool isRequired() { return true; } + static bool isRequired() { return true; } private: bool CompileKernel; @@ -44,24 +44,24 @@ private: FunctionPass *createHWAddressSanitizerLegacyPassPass(bool CompileKernel = false, bool Recover = false); -namespace HWASanAccessInfo { - -// Bit field positions for the accessinfo parameter to -// llvm.hwasan.check.memaccess. Shared between the pass and the backend. Bits -// 0-15 are also used by the runtime. -enum { - AccessSizeShift = 0, // 4 bits - IsWriteShift = 4, - RecoverShift = 5, - MatchAllShift = 16, // 8 bits - HasMatchAllShift = 24, - CompileKernelShift = 25, -}; - -enum { RuntimeMask = 0xffff }; - -} // namespace HWASanAccessInfo - +namespace HWASanAccessInfo { + +// Bit field positions for the accessinfo parameter to +// llvm.hwasan.check.memaccess. Shared between the pass and the backend. Bits +// 0-15 are also used by the runtime. +enum { + AccessSizeShift = 0, // 4 bits + IsWriteShift = 4, + RecoverShift = 5, + MatchAllShift = 16, // 8 bits + HasMatchAllShift = 24, + CompileKernelShift = 25, +}; + +enum { RuntimeMask = 0xffff }; + +} // namespace HWASanAccessInfo + } // namespace llvm #endif diff --git a/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/MemProfiler.h b/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/MemProfiler.h index 4be1152817..86547e02f0 100644 --- a/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/MemProfiler.h +++ b/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/MemProfiler.h @@ -1,62 +1,62 @@ -#pragma once - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wunused-parameter" -#endif - -//===--------- Definition of the MemProfiler class --------------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file declares the MemProfiler class. -// -//===----------------------------------------------------------------------===// -#ifndef LLVM_TRANSFORMS_INSTRUMENTATION_MEMPROFILER_H -#define LLVM_TRANSFORMS_INSTRUMENTATION_MEMPROFILER_H - -#include "llvm/IR/Function.h" -#include "llvm/IR/Module.h" -#include "llvm/IR/PassManager.h" - -namespace llvm { - -/// Public interface to the memory profiler pass for instrumenting code to -/// profile memory accesses. -/// -/// The profiler itself is a function pass that works by inserting various -/// calls to the MemProfiler runtime library functions. The runtime library -/// essentially replaces malloc() and free() with custom implementations that -/// record data about the allocations. -class MemProfilerPass : public PassInfoMixin<MemProfilerPass> { -public: - explicit MemProfilerPass(); - PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM); - static bool isRequired() { return true; } -}; - -/// Public interface to the memory profiler module pass for instrumenting code -/// to profile memory allocations and accesses. -class ModuleMemProfilerPass : public PassInfoMixin<ModuleMemProfilerPass> { -public: - explicit ModuleMemProfilerPass(); - PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM); - static bool isRequired() { return true; } -}; - -// Insert MemProfiler instrumentation -FunctionPass *createMemProfilerFunctionPass(); -ModulePass *createModuleMemProfilerLegacyPassPass(); - -} // namespace llvm - -#endif - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif +#pragma once + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-parameter" +#endif + +//===--------- Definition of the MemProfiler class --------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the MemProfiler class. +// +//===----------------------------------------------------------------------===// +#ifndef LLVM_TRANSFORMS_INSTRUMENTATION_MEMPROFILER_H +#define LLVM_TRANSFORMS_INSTRUMENTATION_MEMPROFILER_H + +#include "llvm/IR/Function.h" +#include "llvm/IR/Module.h" +#include "llvm/IR/PassManager.h" + +namespace llvm { + +/// Public interface to the memory profiler pass for instrumenting code to +/// profile memory accesses. +/// +/// The profiler itself is a function pass that works by inserting various +/// calls to the MemProfiler runtime library functions. The runtime library +/// essentially replaces malloc() and free() with custom implementations that +/// record data about the allocations. +class MemProfilerPass : public PassInfoMixin<MemProfilerPass> { +public: + explicit MemProfilerPass(); + PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM); + static bool isRequired() { return true; } +}; + +/// Public interface to the memory profiler module pass for instrumenting code +/// to profile memory allocations and accesses. +class ModuleMemProfilerPass : public PassInfoMixin<ModuleMemProfilerPass> { +public: + explicit ModuleMemProfilerPass(); + PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM); + static bool isRequired() { return true; } +}; + +// Insert MemProfiler instrumentation +FunctionPass *createMemProfilerFunctionPass(); +ModulePass *createModuleMemProfilerLegacyPassPass(); + +} // namespace llvm + +#endif + +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif diff --git a/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/MemorySanitizer.h b/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/MemorySanitizer.h index 85748cb221..d6d96b89b1 100644 --- a/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/MemorySanitizer.h +++ b/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/MemorySanitizer.h @@ -48,7 +48,7 @@ struct MemorySanitizerPass : public PassInfoMixin<MemorySanitizerPass> { PreservedAnalyses run(Function &F, FunctionAnalysisManager &FAM); PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM); - static bool isRequired() { return true; } + static bool isRequired() { return true; } private: MemorySanitizerOptions Options; diff --git a/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/SanitizerCoverage.h b/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/SanitizerCoverage.h index 69610fc22c..76494514af 100644 --- a/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/SanitizerCoverage.h +++ b/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/SanitizerCoverage.h @@ -53,7 +53,7 @@ public: *vfs::getRealFileSystem()); } PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM); - static bool isRequired() { return true; } + static bool isRequired() { return true; } private: SanitizerCoverageOptions Options; diff --git a/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/ThreadSanitizer.h b/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/ThreadSanitizer.h index 898a08b238..a2e2d99692 100644 --- a/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/ThreadSanitizer.h +++ b/contrib/libs/llvm12/include/llvm/Transforms/Instrumentation/ThreadSanitizer.h @@ -35,7 +35,7 @@ FunctionPass *createThreadSanitizerLegacyPassPass(); struct ThreadSanitizerPass : public PassInfoMixin<ThreadSanitizerPass> { PreservedAnalyses run(Function &F, FunctionAnalysisManager &FAM); PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM); - static bool isRequired() { return true; } + static bool isRequired() { return true; } }; } // namespace llvm |