Displaying 13 results from an estimated 13 matches for "removefileonsign".
Did you mean:
removefileonsignal
2014 Feb 27
2
[LLVMdev] multithreaded use of llvm::sys::RemoveFileOnSignal
....mapVirtualFile( filename, sourcecode );
bool ret = ti.run();
In order to speed up compilation of several sources, I call the above code
concurrently in separate threads, with each thread compiling its own source
code. However, this does not work because clang::CompilerInstance calls
llvm::Sys::RemoveFileOnSignal which in turn calls RegisterHandlers() which
is not re-entrant.
Is there a way to make RegisterHandlers() re-entrant? I do call
llvm::start_multi_threaded() before any of this, hoping that it will make
llvm routines thread-safe, but to no avail.
Also, is there any other way of doing parallel co...
2004 Nov 15
0
[LLVMdev] Fixes for windows version
...file: /var/cvs/llvm/llvm/lib/System/Win32/Signals.cpp,v
> retrieving revision 1.10
> diff -u -r1.10 Signals.cpp
> --- lib/System/Win32/Signals.cpp 5 Nov 2004 22:15:36 -0000 1.10
> +++ lib/System/Win32/Signals.cpp 15 Nov 2004 08:35:34 -0000
> @@ -72,7 +72,7 @@
> }
>
> // RemoveFileOnSignal - The public API
> -void sys::RemoveFileOnSignal(const std::string &Filename) {
> +void sys::RemoveFileOnSignal(const sys::Path &Filename) {
> RegisterHandler();
>
> if (CleanupExecuted)
> @@ -81,7 +81,7 @@
> if (FilesToRemove == NULL)
> FilesToRemo...
2004 Nov 15
2
[LLVMdev] Fixes for windows version
Hi,
when I updated the sources today there were several small problems that
stopped the windows version from compiling, here are the patches
m.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: win32patches.txt
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20041115/34634455/attachment.txt>
2010 Jul 16
2
[LLVMdev] Function::getName in CallGraphSCCPass causes bus error
...Function *function = node->getFunction();
StringRef str = function->getName();
return false;
}
};
And when I run the pass with opt, I get:
0 libLLVM-2.7.dylib 0xe0b33d28
llvm::sys::RWMutexImpl::writer_release() + 424
1 libLLVM-2.7.dylib 0xe0b34607
llvm::sys::RemoveFileOnSignal(llvm::sys::Path const&, std::string*) +
1143
2 libSystem.B.dylib 0x002632bb _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp + 18446744073707048303
4 LLVMHello.dylib 0x0002eba8 (anonymous
namespace)::Hello::runOnSCC(std::vector<llvm::CallGraphNode*,
std::allocator<llvm...
2004 Aug 29
1
[LLVMdev] lib/System Unleashed - Need Your Help!
...inux and MacOS
>are already verified.
>
>The implementation of the lib/System interface should work on Solaris,
>BSD, and perhaps a few other Unix systems. If you run into problems,
>please let me know. Right now, the only thing that should affect any
>tool other than llvmc is the RemoveFileOnSignal and
>PrintStackTraceOnErrorSignal functions. These have been moved out of
>lib/Support and into lib/System.
>
>Until I can get some hardware for each kind of system (should happen
>this fall), I would like to ask for volunteers to assist in the testing
>and porting of lib/System...
2011 Aug 21
4
[LLVMdev] Undefined references when LLVM is configured with "--host=x86_64-gnu-linux --target=x86_64-w64-mingw32"
...LLVMSupport.a(Signals.o):
In function `llvm::sys::SetInterruptFunction(void (*)())':
Signals.cpp:(.text+0x6c8): undefined reference to
`llvm::sys::MutexImpl::acquire()'
/home/ruben/mingw-w64/toolchain/linux64mingw64/llvm-clang/Release/lib/libLLVMSupport.a(Signals.o):
In function `llvm::sys::RemoveFileOnSignal(llvm::sys::Path const&,
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>*)':
Signals.cpp:(.text+0x790): undefined reference to
`llvm::sys::MutexImpl::acquire()'
/home/ruben/mingw-w64/toolchain/linux64mingw64/llvm-clang/Release/lib/libLLVMSupport...
2011 Aug 22
0
[LLVMdev] Undefined references when LLVM is configured with "--host=x86_64-gnu-linux --target=x86_64-w64-mingw32"
...> In function `llvm::sys::SetInterruptFunction(void (*)())':
> Signals.cpp:(.text+0x6c8): undefined reference to
> `llvm::sys::MutexImpl::acquire()'
> /home/ruben/mingw-w64/toolchain/linux64mingw64/llvm-clang/Release/lib/libLLVMSupport.a(Signals.o):
> In function `llvm::sys::RemoveFileOnSignal(llvm::sys::Path const&,
> std::basic_string<char, std::char_traits<char>, std::allocator<char>
>> *)':
> Signals.cpp:(.text+0x790): undefined reference to
> `llvm::sys::MutexImpl::acquire()'
> /home/ruben/mingw-w64/toolchain/linux64mingw64/llvm-clang/R...
2004 Aug 30
1
[LLVMdev] lib/System Unleashed - Need Your Help!
...>
> > >The implementation of the lib/System interface should work on Solaris,
> > >BSD, and perhaps a few other Unix systems. If you run into problems,
> > >please let me know. Right now, the only thing that should affect any
> > >tool other than llvmc is the RemoveFileOnSignal and
> > >PrintStackTraceOnErrorSignal functions. These have been moved out of
> > >lib/Support and into lib/System.
> > >
> > >Until I can get some hardware for each kind of system (should happen
> > >this fall), I would like to ask for volunteers to a...
2017 Nov 09
10
Experiment on how to improve our temporary file handing.
Currently a power failure or other hard crash can cause lld leave a temporary
file around. The same is true for other llvm tools.
As an example, put a breakpoint in Writer.cpp:236 ("writeBuildId()") and
restart the run a few times. You will get
t.tmp43a735a t.tmp4deeabb t.tmp9bacdd3 t.tmpe4115c4 t.tmpeb01fff
The same would happen if there was a fatal error between the
2010 Jul 19
0
[LLVMdev] Function::getName in CallGraphSCCPass causes bus error
...the "external node".
Ciao,
Duncan.
> return false;
> }
> };
>
> And when I run the pass with opt, I get:
>
> 0 libLLVM-2.7.dylib 0xe0b33d28
> llvm::sys::RWMutexImpl::writer_release() + 424
> 1 libLLVM-2.7.dylib 0xe0b34607
> llvm::sys::RemoveFileOnSignal(llvm::sys::Path const&, std::string*) +
> 1143
> 2 libSystem.B.dylib 0x002632bb _sigtramp + 43
> 3 libSystem.B.dylib 0xffffffff _sigtramp + 18446744073707048303
> 4 LLVMHello.dylib 0x0002eba8 (anonymous
> namespace)::Hello::runOnSCC(std::vector<llvm::CallGraphNode*,
>...
2012 Jun 28
0
[LLVMdev] One problem to discuss
...int Sig) {
...
SignalsMutex.acquire();
RemoveFilesToRemove();
...
}
We can also find following code snippet in the same file:
void llvm::sys::RunInterruptHandlers() {
SignalsMutex.acquire();
RemoveFilesToRemove();
SignalsMutex.release();
}
Similarly, there are SetInterruptFunction, RemoveFileOnSignal, DontRemoveFileOnSignal
I am afraid there is deadlock risk if llvm running in multithread mode, the case it is designed to safeguard.
Suppose, say when some thread runs into RunInterruptHandlers and acquire the Mutex, then it is preemptied by scheduler, and before it is reselected by scheduler,...
2004 Aug 29
6
[LLVMdev] lib/System Unleashed - Need Your Help!
...on most Unix systems. Linux and MacOS
are already verified.
The implementation of the lib/System interface should work on Solaris,
BSD, and perhaps a few other Unix systems. If you run into problems,
please let me know. Right now, the only thing that should affect any
tool other than llvmc is the RemoveFileOnSignal and
PrintStackTraceOnErrorSignal functions. These have been moved out of
lib/Support and into lib/System.
Until I can get some hardware for each kind of system (should happen
this fall), I would like to ask for volunteers to assist in the testing
and porting of lib/System to: Darwin, Solaris 8/9...
2007 Jul 05
2
[LLVMdev] PATCH (rest of code changes) "bytecode" --> "bitcode"
Here is the bulk of the sanitizing.
My residual doubts center around the question
whether we still do/want to support (un)compressed *byte*code
in 2.0/2.1.
I need a definitive word on this to proceed.
My understanding is that bytecode is already gone, but there are
still some functions/enums that really deal with *byte*code
(instead of *bit*code).
I did not touch those areas, so the attached