[LoongArch][Clang] Make the parameters and return value of {x,}vorn.v builti ns ...
[llvm-project.git] / lldb / source / Plugins / InstrumentationRuntime / ASan / InstrumentationRuntimeASan.h
blob177959d7126be9e433064fbae5ad23503279608d
1 //===-- InstrumentationRuntimeASan.h ----------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_SOURCE_PLUGINS_INSTRUMENTATIONRUNTIME_ASAN_INSTRUMENTATIONRUNTIMEASAN_H
10 #define LLDB_SOURCE_PLUGINS_INSTRUMENTATIONRUNTIME_ASAN_INSTRUMENTATIONRUNTIMEASAN_H
12 #include "lldb/Target/InstrumentationRuntime.h"
14 namespace lldb_private {
16 class InstrumentationRuntimeASan : public lldb_private::InstrumentationRuntime {
17 public:
18 ~InstrumentationRuntimeASan() override;
20 static lldb::InstrumentationRuntimeSP
21 CreateInstance(const lldb::ProcessSP &process_sp);
23 static void Initialize();
25 static void Terminate();
27 static llvm::StringRef GetPluginNameStatic() { return "AddressSanitizer"; }
29 static lldb::InstrumentationRuntimeType GetTypeStatic();
31 llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
33 virtual lldb::InstrumentationRuntimeType GetType() { return GetTypeStatic(); }
35 private:
36 InstrumentationRuntimeASan(const lldb::ProcessSP &process_sp)
37 : lldb_private::InstrumentationRuntime(process_sp) {}
39 const RegularExpression &GetPatternForRuntimeLibrary() override;
41 bool CheckIfRuntimeIsValid(const lldb::ModuleSP module_sp) override;
43 void Activate() override;
45 void Deactivate();
47 static bool NotifyBreakpointHit(void *baton,
48 StoppointCallbackContext *context,
49 lldb::user_id_t break_id,
50 lldb::user_id_t break_loc_id);
53 } // namespace lldb_private
55 #endif // LLDB_SOURCE_PLUGINS_INSTRUMENTATIONRUNTIME_ASAN_INSTRUMENTATIONRUNTIMEASAN_H