Displaying 20 results from an estimated 59 matches for "errorstring".
2009 Sep 23
1
[LLVMdev] [PATCH] Set error message if JIT/Interpreter not linked in.
Hi,
In ExecutionEngine.cpp, when the JIT or the Interpreter have not been
linked in then EngineBuilder::create fails without setting ErrorStr.
I've attached a patch to fix this.
Warm Regards
KS Sreeram
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ee-not-linked-in-msg.diff
URL:
2009 Jul 23
1
[LLVMdev] Possible change to ExecutionEngine::create()
Hi,
Would it be possible to make the following slight change to ExecutionEngine::create()?
I would like to be able to disable the automatic enumeration of loaded modules, and the subsequent searching for undefined symbols (using SearchForAddressOfSymbol).
I propose adding an extra parameter to the function definition, defaulting to true.
static ExecutionEngine *create(ModuleProvider *MP,
2012 Aug 09
1
[LLVMdev] question about ExectuionEngine::Create
I found the following problem when I try to debug "target does not support
mc emission" in linux (the same code executes OK in windows):
Below is a snippet extracted from this method,
if (UseMCJIT && ExecutionEngine::MCJITCtor) {
ExecutionEngine *EE =
ExecutionEngine::MCJITCtor(M, ErrorStr, JMM, OptLevel,
2009 Jul 23
2
[LLVMdev] proposed new rule for getelementptr
On Jul 22, 2009, at 5:23 PM, Chris Lattner wrote:
>
> On Jul 22, 2009, at 1:32 PM, Dan Gohman wrote:
>
>>>>
>>>> - A null pointer is associated with no addresses.
>>>>
>>>
>>> A null pointer in address space 0.
>>
>> I'm not fond of weird address-space semantics, but for consistency
>> with what the optimizer is
2009 Jul 23
0
[LLVMdev] Possible change to ExecutionEngine::create()
On Jul 22, 2009, at 9:43 PM, Rob Grapes wrote:
> Hi,
>
> Would it be possible to make the following slight change to
> ExecutionEngine::create()?
>
> I would like to be able to disable the automatic enumeration of
> loaded modules, and the subsequent searching for undefined symbols
> (using SearchForAddressOfSymbol).
>
> I propose adding an extra parameter to
2009 Jul 23
2
[LLVMdev] Possible change to ExecutionEngine::create()
Hi Rob,
Can you comment on exactly what the problem is you want to solve? Is
it a performance issue with LoadLibraryPermanently, or do you simply
not want the external symbols to be resolved from within the JIT?
- Daniel
On Wed, Jul 22, 2009 at 11:22 PM, Evan Cheng<evan.cheng at apple.com> wrote:
>
> On Jul 22, 2009, at 9:43 PM, Rob Grapes wrote:
>
>> Hi,
>>
>>
2009 Jul 23
0
[LLVMdev] Possible change to ExecutionEngine::create()
Hi Daniel,
In my case ExecutionEngine::create() loads 40 modules, then each time I try to resolve a symbol that I know is in a DLL that I supply, it looks through all 40 modules first. This is on Windows, so I get the following modules loaded:
ntdll.dll, kernel32.dll, USER32.dll, GDI32.dll, SHELL32.dll, ADVAPI32.dll, RPCRT4.dll,
Secur32.dll, msvcrt.dll, SHLWAPI.dll, ole32.dll, OLEAUT32.dll,
2008 Feb 21
3
[LLVMdev] LLVM Win32 Issue
Hello all,
I'm trying to bring an LLVM-based project that is working on Linux up
on Win32. I am having problems with llvm::ExecutionEngine::create
returning a NULL. I traced it to these lines:
// Unless the interpreter was explicitly selected, try making a JIT.
if (!ForceInterpreter && JITCtor)
EE = JITCtor(MP, ErrorStr);
// If we can't make a JIT, make an
2012 May 09
2
[LLVMdev] Null pointer dereference
Hi all,
Writing my own LLVM client I've noticed a potential null pointer
dereference in EngineBuilder::selectTarget.
The class has an optional pointer to the ErrorStr, which can be initialzied
through setErrorStr() method. Although, it's strictly optional,
selectTarget doesn't verify its value before assignment.
Please find patch for branch release_31, revision 155051 attached.
-
2012 Oct 26
2
[LLVMdev] changes to raw_fd_ostream
I'm getting seemingly odd SegFaults when writing out using a
raw_fd_ostream in the current trunk (last version worked, believe it was
153818, or similar). Again, nothing in the release notes... should I be
scanning the svn log?
For example, I have something like:
raw_fd_ostream fout("out.txt", errorStr="");
....
fout<<"Hello World, how are you!"\n";
2019 Sep 18
2
EngineBuilder(std::move(Owner)).create() return null
I found a private ErrorStr member, but didn't find the get function of this
member, could you tell me how I can get the error message?
On Wed, Sep 18, 2019 at 4:02 PM mayuyu.io <admin at mayuyu.io> wrote:
> Isn’t there a method in EngineBuilder to get the error message or
> something?
> I assume it’s you didn’t link in the JIT module
>
> Zhang
>
> 在
2009 Jul 20
1
[LLVMdev] Got a "corrupted double-linked list" error?
Hi,all
Recently,I write some code to implement the following funtions:
I make use the codes of "llvm-dis" to disassemble the bitcode file and
do some change on it,after that ,"my llvm-as" assembles the changed file
to generate a bitcode file.
But I got a "corrupted double-linked list" error when "my llvm-as"
works,however,when I do nothing on the
2012 May 09
0
[LLVMdev] Null pointer dereference
Hi Yury,
No need for the "{" "}" since it's a single statement in the compound statement. Other than that minor style detail, this looks fine assuming it applies cleanly to trunk.
Do you have commit access?
Regards,
-Jim
On May 9, 2012, at 3:40 PM, Yury Mikhaylov wrote:
> Hi all,
>
> Writing my own LLVM client I've noticed a potential null pointer
2012 May 09
1
[LLVMdev] Null pointer dereference
Thank you for your response Jim.
As of revision 153342 it applies properly to trunk. No, unfortunately I
don't have access, would you please commit it for me?
Thanks,
Yury
On Wed, May 9, 2012 at 4:37 PM, Jim Grosbach <grosbach at apple.com> wrote:
> Hi Yury,
>
> No need for the "{" "}" since it's a single statement in the compound
> statement.
2012 Jul 09
0
[LLVMdev] ExecutionEngine fails to use MCJIT, non-unique static member variables
I see very strange behaviour. I am linking to LLVMMCJIT and I #include
MCJIT.h. I can see in the debugger that MCJIT::Register is being called.
If I break in ExecutionEngine::create, I
can see that UseMCJIT is true and ExecutionEngine::MCJITCtor is
non-zero. Still at this point (lines after 481):
if (UseMCJIT && ExecutionEngine::MCJITCtor) {
ExecutionEngine *EE =
2012 Apr 29
1
[LLVMdev] Running LLVM JIT on qemu-system-arm
Hi all,
I'm struggling to get lli work on qemu-system-arm. I already boot the system
with a debian squeeze rootfs which contains a statically cross-compiled lli
for armel. When I run ./lli hello.bc, I got the following error msg:
./lli: error creating EE: /lib/: cannot read file data: Is a directory
afaik, this error is related to lli using dlopen() with a NULL path to
resolve symbols for
2012 Oct 26
0
[LLVMdev] changes to raw_fd_ostream
It looks like some kind of file IO buffer overflow. I'm not dumping any
long strings at one time, but I am keeping the file open for the entire
run. I've yet to find a correlation to other C files.
On Fri, Oct 26, 2012 at 3:17 PM, Ryan Taylor <ryta1203 at gmail.com> wrote:
> I'm getting seemingly odd SegFaults when writing out using a
> raw_fd_ostream in the current
2008 Feb 28
1
[LLVMdev] Are multiple execution engines allowed?
I'm trying to set up some automated testing, and I'd like to have
multiple instances of ExecutionEngines, so that the state from the
first test doesn't alter the second state.
Right now I'm doing something along the lines of:
Module *emptyModule = new Module("emptyModule");
ExecutionEngine executionEngine = ExecutionEngine::create(emptyModule);
2011 May 31
0
[LLVMdev] Assertion failure in MC emitter running LLVM libs on Android using android-ndk
Hello,
I am encountering a strange assertion failure using the LLVM libraries cross-compiled for Android using the Android NDK. I am using the official release of LLVM-2.9.
The IR which is causing the assertion failure is the following:
define void @__construct_Byte__Integer(i8* nocapture %byteLValue, i32 %integerRValue) inlinehint {
entry:
%0 = trunc i32 %integerRValue to i8
store i8 %0,
2012 Oct 29
1
[LLVMdev] changes to raw_fd_ostream
So I did a clean checkout and build and still have this issue, did
something changed with the way/when it's getting flushed? My old revision
did not have this issue, this is an issue strictly with LLVM it seems.
On Fri, Oct 26, 2012 at 3:27 PM, Ryan Taylor <ryta1203 at gmail.com> wrote:
> It looks like some kind of file IO buffer overflow. I'm not dumping any
> long strings