llvm.org GIT mirror llvm / f501bf3
[C-API] Add functions to create GDB, Intel, Oprofile event listeners. The additions of Intel, Oprofile listeners were done blindly. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D44890 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@333230 91177308-0d34-0410-b5e6-96231b3b80d8 Andres Freund 1 year, 3 months ago
5 changed file(s) with 34 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
124124
125125 } // end namespace llvm
126126
127 #ifndef LLVM_USE_INTEL_JITEVENTS
128 LLVMJITEventListenerRef LLVMCreateIntelJITEventListener(void) {
129 return nullptr;
130 }
131 #endif
132
133 #ifndef LLVM_USE_OPROFILE
134 LLVMJITEventListenerRef LLVMCreateOProfileJITEventListener(void) {
135 return nullptr;
136 }
137 #endif
138
127139 #endif // LLVM_EXECUTIONENGINE_JITEVENTLISTENER_H
181181
182182 void LLVMDisposeMCJITMemoryManager(LLVMMCJITMemoryManagerRef MM);
183183
184 /*===-- JIT Event Listener functions -------------------------------------===*/
185
186 LLVMJITEventListenerRef LLVMCreateGDBRegistrationListener(void);
187 LLVMJITEventListenerRef LLVMCreateIntelJITEventListener(void);
188 LLVMJITEventListenerRef LLVMCreateOprofileJITEventListener(void);
189
184190 /**
185191 * @}
186192 */
66 //
77 //===----------------------------------------------------------------------===//
88
9 #include "llvm-c/ExecutionEngine.h"
910 #include "llvm/ADT/DenseMap.h"
1011 #include "llvm/ExecutionEngine/JITEventListener.h"
1112 #include "llvm/Object/ObjectFile.h"
234235 }
235236
236237 } // namespace llvm
238
239 LLVMJITEventListenerRef LLVMCreateGDBRegistrationListener(void)
240 {
241 return wrap(JITEventListener::createGDBRegistrationListener());
242 }
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "IntelJITEventsWrapper.h"
15 #include "llvm-c/ExecutionEngine.h"
1516 #include "llvm/ADT/DenseMap.h"
1617 #include "llvm/CodeGen/MachineFunction.h"
1718 #include "llvm/Config/config.h"
237238
238239 } // namespace llvm
239240
241 LLVMJITEventListenerRef LLVMCreateIntelJITEventListener(void)
242 {
243 return wrap(JITEventListener::createIntelJITEventListener());
244 }
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #include "llvm-c/ExecutionEngine.h"
1415 #include "llvm/CodeGen/MachineFunction.h"
1516 #include "llvm/Config/config.h"
1617 #include "llvm/ExecutionEngine/JITEventListener.h"
157158
158159 } // namespace llvm
159160
161 LLVMJITEventListenerRef LLVMCreateOProfileJITEventListener(void)
162 {
163 return wrap(JITEventListener::createOProfileJITEventListener());
164 }