LLVM 24.0.0git
InstrumentationOptions.h
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
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//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_LIB_TRANSFORMS_INSTRUMENTATION_INSTRUMENTATIONOPTIONS_H
10#define LLVM_LIB_TRANSFORMS_INSTRUMENTATION_INSTRUMENTATIONOPTIONS_H
11
15#include <optional>
16
17namespace llvm {
18// Mode for selecting how to insert frame record info into the stack ring
19// buffer.
21 // Do not record frame record info.
23
24 // Insert instructions into the prologue for storing into the stack ring
25 // buffer directly.
27
28 // Add a call to __hwasan_add_frame_record in the runtime.
30};
31} // namespace llvm
32
33#define OPTIONS_STRUCT_DECL
34#include "InstrumentationOptions.inc"
35
36#endif // LLVM_LIB_TRANSFORMS_INSTRUMENTATION_INSTRUMENTATIONOPTIONS_H
This is an optimization pass for GlobalISel generic memory operations.