1 //===- InstrumentationBindings.h - instrumentation bindings -----*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 // This file defines C bindings for the Transforms/Instrumentation component.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_BINDINGS_GO_LLVM_INSTRUMENTATIONBINDINGS_H
14 #define LLVM_BINDINGS_GO_LLVM_INSTRUMENTATIONBINDINGS_H
16 #include "llvm-c/Core.h"
22 // FIXME: These bindings shouldn't be Go-specific and should eventually move to
23 // a (somewhat) less stable collection of C APIs for use in creating bindings of
24 // LLVM in other languages.
26 void LLVMAddAddressSanitizerFunctionPass(LLVMPassManagerRef PM
);
27 void LLVMAddAddressSanitizerModulePass(LLVMPassManagerRef PM
);
28 void LLVMAddThreadSanitizerPass(LLVMPassManagerRef PM
);
29 void LLVMAddMemorySanitizerLegacyPassPass(LLVMPassManagerRef PM
);
30 void LLVMAddDataFlowSanitizerPass(LLVMPassManagerRef PM
, int ABIListFilesNum
,
31 const char **ABIListFiles
);