Displaying 20 results from an estimated 2000 matches similar to: "[LLVMdev] LLVM2.2 x64 JIT trouble on VStudio build"
2008 Feb 18
1
[LLVMdev] LLVM2.2 x64 JIT trouble on VStudio build
> The x86-64 one probably doesn't work for Winodws. That's likely the
> issue.
Well, x86-64 stub was never ported to intel assembler, I expect to see
32-bit one used on windows64.
In general, the whole windows64 support is missed mainly due to crazy
calling convetion invented by Microsoft. So, all calls from code being
JITed to external functions will be clearly broken (if they
2008 Feb 19
1
[LLVMdev] LLVM2.2 x64 JIT trouble on VStudio build
Hello, Chuck
> I've had a look at the stubs before and I think I'm circumventing them
> in the example program since I populate the table and compile the
> functions in the order so that things never need to be done lazily, but
> I'll look further.
Well, anyway stubs are definitely wrong from windows64 and this should
be fixed, otherwise funny stuff can happen from time to
2008 Feb 19
0
[LLVMdev] LLVM2.2 x64 JIT trouble on VStudio build
Hello, Evan
> I think a Win64 version of X86CompilationCallback{2} is still needed.
> Also, it's not clear to me how to force a non-Windows CC. It may
> require some FE extension to support it?
Well, as currently we don't have windows64 support in FE correct
(non-windows) CC will be set automatically.
--
WBR, Anton Korobeynikov
2008 Feb 15
1
[LLVMdev] LLVM2.2 x64 JIT trouble on VStudio build
Hey Evan,
At the point of the instructions you suggested I step through, X86ISelLowering has this state:
- this 0x00000000005fe728 {VarArgsFrameIndex=-842150451 RegSaveFrameIndex=-842150451 VarArgsGPOffset=3452816845 ...} llvm::X86TargetLowering * const
+ llvm::TargetLowering {TM={...} TD=0x00000000008edac0
2008 Feb 18
1
[LLVMdev] LLVM2.2 x64 JIT trouble on VStudio build
Hello, Evan
> I am not sure if it has been tested on x86-64 Windows.
> Anton, do you know?
I don't think it was ever written (for vcpp). There is 32-bit stub only.
--
WBR, Anton Korobeynikov
2008 Feb 15
0
[LLVMdev] LLVM2.2 x64 JIT trouble on VStudio build
On Feb 12, 2008, at 5:26 PM, Chuck Rose III wrote:
> Hola LLVMers,
>
> I’m debugging through some strangeness that I’m seeing on X64 on
> windows with LLVM2.2. I had to change the code so that it would
> engage the x64 target machine on windows builds, but I’ve otherwise
> left LLVM 2.2 alone. The basic idea is that I’ve got a function bar
> which is compiled by
2008 Feb 13
3
[LLVMdev] LLVM2.2 x64 JIT trouble on VStudio build
Hola LLVMers,
I'm debugging through some strangeness that I'm seeing on X64 on windows with LLVM2.2. I had to change the code so that it would engage the x64 target machine on windows builds, but I've otherwise left LLVM 2.2 alone. The basic idea is that I've got a function bar which is compiled by VStudio and I'm creating another function foo via LLVM JIT which is going
2009 Aug 18
0
[LLVMdev] Build issues on Solaris
Hello, Nathan
> or if it should be a configure test, which might be safer. Are there
> any x86 platforms (other than apple) that don't need PLT-indirect calls?
Yes, mingw. However just tweaking the define is not enough - we're not
loading address of GOT into ebx before the call (on 32 bit ABIs) thus
the call will be to nowhere.
--
With best regards, Anton Korobeynikov
Faculty of
2010 Dec 31
0
[LLVMdev] LLVM on Windows MSVC 10
Ruben Van Boxem <vanboxem.ruben at gmail.com> writes:
>>> I'm trying to build svn LLVM with Visual Studio 2010:
>>>
>>> cd build
>>> cmake .. -G"NMake Makefiles"
>>> nmake
>>>
>>> and several link steps fail due to a missing symbol:
>>>
>>> > LLVMX86CodeGen.lib(X86JITInfo.cpp.obj) : error
2006 Jan 26
0
[LLVMdev] VS2005 patch
Hi Morten,
If you can make the VS2005 project files availiable on the net then I can
test them as I have VS2005 now, so then with Chris'es okay then they could
be distributed with LLVM.
Thanks,
Aaron
----- Original Message -----
From: "Morten Ofstad" <morten at hue.no>
To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu>
Sent: Thursday, January 26,
2009 Aug 25
2
[LLVMdev] Build issues on Solaris
On 19/08/2009, at 4:00 AM, Anton Korobeynikov wrote:
> Hello, Nathan
>
>> or if it should be a configure test, which might be safer. Are there
>> any x86 platforms (other than apple) that don't need PLT-indirect
>> calls?
> Yes, mingw. However just tweaking the define is not enough - we're not
Ok, so configure might be the way to go then, maybe something
2009 Aug 11
6
[LLVMdev] Build issues on Solaris
Hi all,
I've encountered a couple of minor build issues on Solaris that
have crept in since 2.5, fixes below:
1. In lib/Target/X86/X86JITInfo.cpp, there is:
// Check if building with -fPIC
#if defined(__PIC__) && __PIC__ && defined(__linux__)
#define ASMCALLSUFFIX "@PLT"
#else
#define ASMCALLSUFFIX
#endif
Which causes a link failure due to the non-PLT
2010 Dec 31
2
[LLVMdev] LLVM on Windows MSVC 10
2010/12/31 Francois Pichet <pichet2000 at gmail.com>:
> I don't normally build using nmake.. but I just tried and it worked 100%
> here.
> Are you sure you are using the trunk?
>
> On Fri, Dec 31, 2010 at 7:32 AM, Ruben Van Boxem <vanboxem.ruben at gmail.com>
> wrote:
>>
>> I first sent this to the Clang dev list, but they told me to come here:
2006 Jan 26
4
[LLVMdev] VS2005 patch
OK, fixed the problem with the intrin.h header that doesn't exist in previous versions of VS...
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: JIT.patch
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060126/7e55b0d0/attachment.ksh>
2005 Aug 30
1
[LLVMdev] X86ISelPattern.cpp:73: undefined reference to `X86CompilationCallback
Hi LLVM'ers,
I can't figure out why I get this error:
--------------------------------------------------
c:/MinGW/bin/../libexec/gcc/mingw32/3.4.2/collect2.exe -Bdynamic -o
c:/projects/build/MinGW/llvm-1-1/Debug/bin/llc.exe /mingw/lib/crt2.o
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/crtbegin.o
-Lc:/projects/build/MinGW/llvm-1-1/Debug/lib
-Lc:/projects/build/MinGW/llvm-1-1/Debug/bin
2018 Sep 19
4
Can i reduce my clang/JIT app in size?
i want to integrate a C source JITer into my application but the
resulting executables are too large
is it possible to reduce the resulting libs/exe some way?
current VS2017/svn build example:
llvm-build\Release\bin\clang-interpreter.exe ~36MB
for now (that can change later)
- i want to jit simple c-code
- no std library or something
- x64 only
- no deep/full architecture optimization needed
-
2005 May 30
4
[LLVMdev] [Cygwin] onsistant error building LLVM
Also, this error:
/usr/src/llvm/lib/Target/X86/X86ISelPattern.cpp:73: undefined reference
to `X86CompilationCallback2'
doesn't make sense. X86CompilationCallback2 is not visible outside of
X86JITInfo.cpp, and line 73 of X86ISelPattern.cpp is in the middle of a
comment block.
2009 Mar 10
2
[LLVMdev] Bug in X86CompilationCallback_SSE
Hello.
I found that the X86CompilationCallback_SSE wrapper for
X86CompilationCallback2 is not setting up properly for the PIC
invocation.
Before you can correctly invoke a function via the Procedure Linkage
Table (plt), the ABI mandates that ebx is pointing to the GOT (Global
Offset Table) (see http://www.greyhat.ch/lab/downloads/pic.html)
Dump of assembler code for function
2019 Sep 18
2
(How) Can I add C standard libraries to JIT?
Hi Yafei,
As david told, you can make the symbols of your host process visible to the
JIT'd code through DynamicLibrarySearchGenerator::getForCurrentProcess.
On Thu, 19 Sep 2019 at 00:46, David Blaikie via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> +Lang Hames <lhames at gmail.com> , JITer of JITs.
>
> I believe there's some kind of resolver you can add that
2009 Mar 11
4
[LLVMdev] Bug in X86CompilationCallback_SSE
I don't know how to file a PR, but I have a patch (see below), that
should work regardless of abi differences, since it relies on the
compiler to do the though job.
void X86CompilationCallback_SSE(void) {
char * SAVEBUF= (char*) alloca(64+12); // alloca is 16byte aligned
asm volatile (
"movl %%eax,(%0)\n"
"movl %%edx,4(%0)\n" // Save EAX/EDX/ECX