search for: __visibility__

Displaying 2 results from an estimated 2 matches for "__visibility__".

2017 Jun 21
2
How to prevent optimizing away a call + its arguments
Hi llvm-dev, I have a C function: __attribute__((__visibility__("default"))) __attribute__((used)) __attribute__((noinline)) void please_do_not_optimize_me_away(int arg1, void *arg2) { asm volatile("" :::); } (the purpose is that this function will be used dynamically at runtime, perhaps by interposing the function, or via the debugger)...
2013 Nov 01
4
[LLVMdev] [Proposal] Adding callback mechanism to Execution Engines
...gine/RTDyldMemoryManager.cpp (revision 193441) +++ lib/ExecutionEngine/RTDyldMemoryManager.cpp (working copy) @@ -28,6 +28,14 @@ #include <unistd.h> #endif +#ifndef HAVE___DSO_HANDLE +#define HAVE___DSO_HANDLE 1 +#endif + +#if HAVE___DSO_HANDLE +extern void *__dso_handle __attribute__ ((__visibility__ ("hidden"))); +#endif + namespace llvm { RTDyldMemoryManager::~RTDyldMemoryManager() {} @@ -173,6 +181,11 @@ // is called before ExecutionEngine::runFunctionAsMain() is called. if (Name == "__main") return (uint64_t)&jit_noop; + #if HAVE___DSO_HANDLE + if (Na...