[LoongArch] Supports FP_TO_SINT operation for fp16 (#118303)
[llvm-project.git] / lldb / source / Plugins / InstrumentationRuntime / ASanLibsanitizers / InstrumentationRuntimeASanLibsanitizers.h
blobabb445a9dd676db62fa69d8489f2c0f395a12bdf
1 //===-- InstrumentationRuntimeASanLibsanitizers.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_ASANLIBSANITIZERS_INSTRUMENTATIONRUNTIMEASANLIBSANITIZERS_H
10 #define LLDB_SOURCE_PLUGINS_INSTRUMENTATIONRUNTIME_ASANLIBSANITIZERS_INSTRUMENTATIONRUNTIMEASANLIBSANITIZERS_H
12 #include "lldb/Target/InstrumentationRuntime.h"
14 class InstrumentationRuntimeASanLibsanitizers
15 : public lldb_private::InstrumentationRuntime {
16 public:
17 ~InstrumentationRuntimeASanLibsanitizers() override;
19 static lldb::InstrumentationRuntimeSP
20 CreateInstance(const lldb::ProcessSP &process_sp);
22 static void Initialize();
24 static void Terminate();
26 static llvm::StringRef GetPluginNameStatic() { return "Libsanitizers-ASan"; }
28 static lldb::InstrumentationRuntimeType GetTypeStatic();
30 llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
32 virtual lldb::InstrumentationRuntimeType GetType() { return GetTypeStatic(); }
34 private:
35 InstrumentationRuntimeASanLibsanitizers(const lldb::ProcessSP &process_sp)
36 : lldb_private::InstrumentationRuntime(process_sp) {}
38 const lldb_private::RegularExpression &GetPatternForRuntimeLibrary() override;
40 bool CheckIfRuntimeIsValid(const lldb::ModuleSP module_sp) override;
42 void Activate() override;
44 void Deactivate();
46 static bool
47 NotifyBreakpointHit(void *baton,
48 lldb_private::StoppointCallbackContext *context,
49 lldb::user_id_t break_id, lldb::user_id_t break_loc_id);
52 #endif // LLDB_SOURCE_PLUGINS_INSTRUMENTATIONRUNTIME_ASANLIBSANITIZERS_INSTRUMENTATIONRUNTIMEASANLIBSANITIZERS_H