Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] x86_stdcallcc and extra name mangling on Windows"
2013 Feb 20
0
[LLVMdev] x86_stdcallcc @<n> mangling vs. '\1' prefix [was: x86_stdcallcc and extra name mangling on Windows]
I think so. There have been other reports lately related to this being
wrong.
http://llvm.org/bugs/show_bug.cgi?id=14410
CC'ing Timur since he might know more about this.
On Wed, Feb 20, 2013 at 5:27 PM, David Nadlinger <code at klickverbot.at>wrote:
> On Tue, Feb 19, 2013 at 2:13 PM, Duncan Sands <baldrick at free.fr> wrote:
> >> My question: Is there an easy way
2013 Feb 20
2
[LLVMdev] x86_stdcallcc @<n> mangling vs. '\1' prefix [was: x86_stdcallcc and extra name mangling on Windows]
On Tue, Feb 19, 2013 at 2:13 PM, Duncan Sands <baldrick at free.fr> wrote:
>> My question: Is there an easy way of disabling the name-mangling part
>> but keep the rest of the CC that I missed?
> if you use "\1" + "usual name", it will disable name mangling if you are
> lucky. A leading \1 is LLVM's way of saying: leave this name alone!
Seems like
2013 Feb 20
0
[LLVMdev] x86_stdcallcc @<n> mangling vs. '\1' prefix [was: x86_stdcallcc and extra name mangling on Windows]
The patch looks incorrect. The code just needs to handle \1 properly
and clang extended to add explicit \1 to the names which does not
require mangling.
I do not think that moving whole mangling to clang is a good idea,
because then everyone who uses LLVM to call WinApi functions will need
to mangle by hands.
On Wed, Feb 20, 2013 at 11:25 PM, Timur Iskhodzhanov
<timurrrr at google.com>
2013 Feb 20
4
[LLVMdev] x86_stdcallcc @<n> mangling vs. '\1' prefix [was: x86_stdcallcc and extra name mangling on Windows]
I don't remember anything other that what I've written in the bug João
has mentioned.
Probably something like this patch
http://llvm.org/bugs/show_bug.cgi?id=14410#c6
?
2013/2/20 João Matos <ripzonetriton at gmail.com>:
> I think so. There have been other reports lately related to this being
> wrong.
>
> http://llvm.org/bugs/show_bug.cgi?id=14410
>
> CC'ing
2013 Mar 29
2
[LLVMdev] x86_stdcallcc @<n> mangling vs. '\1' prefix [was: x86_stdcallcc and extra name mangling on Windows]
Anton, what do you think of David's patch with this test case? OK to
commit that?
On Wed, Feb 20, 2013 at 12:43 PM, Anton Korobeynikov <
anton at korobeynikov.info> wrote:
> The patch looks incorrect. The code just needs to handle \1 properly
> and clang extended to add explicit \1 to the names which does not
> require mangling.
>
> I do not think that moving whole
2013 Feb 22
1
[LLVMdev] x86_stdcallcc @<n> mangling vs. '\1' prefix [was: x86_stdcallcc and extra name mangling on Windows]
2013/2/21 Anton Korobeynikov <anton at korobeynikov.info>:
> The patch looks incorrect. The code just needs to handle \1 properly
> and clang extended to add explicit \1 to the names which does not
> require mangling.
I think clang already adds \01 to __stdcall names, so only the LLVM
change is remaining.
> I do not think that moving whole mangling to clang is a good idea,
>
2013 Dec 02
3
[LLVMdev] Please update LDC references on LLVM website
Hi!
I like to submit some updates to the LLVM website regarding the LDC
compiler. All links are currently out-of-date. The following pages need
updates:
On page http://www.llvm.org/Users.html, please replace the existing
entry "LLVM D Compiler" in section "Open Source Projects" with:
<tr>
<td><a href="http://wiki.dlang.org/LDC/">
2013 Dec 03
0
[LLVMdev] Please update LDC references on LLVM website
Can you send a patch?
On 2 December 2013 06:44, Kai Nacke <kai at redstar.de> wrote:
> Hi!
>
> I like to submit some updates to the LLVM website regarding the LDC
> compiler. All links are currently out-of-date. The following pages need
> updates:
>
> On page http://www.llvm.org/Users.html, please replace the existing entry
> "LLVM D Compiler" in section
2013 Dec 03
2
[LLVMdev] Please update LDC references on LLVM website
Hi Rafael,
is there a repository with the static pages or should I simply produce a
diff between the 2 versions?
Regards,
Kai
On 03.12.2013 14:30, Rafael Espíndola wrote:
> Can you send a patch?
>
> On 2 December 2013 06:44, Kai Nacke <kai at redstar.de> wrote:
>> Hi!
>>
>> I like to submit some updates to the LLVM website regarding the LDC
>> compiler.
2013 Dec 03
1
[LLVMdev] Please update LDC references on LLVM website
On 03.12.2013 14:30, Rafael Espíndola wrote:
> Can you send a patch?
Hi Rafael, the patch is attached.
@Mikael, Tim
Thanks for the help. I really needed only the link to the repo.
Regards,
Kai
>
> On 2 December 2013 06:44, Kai Nacke <kai at redstar.de> wrote:
>> Hi!
>>
>> I like to submit some updates to the LLVM website regarding the LDC
>> compiler. All
2013 Dec 03
0
[LLVMdev] Please update LDC references on LLVM website
You need to get the LLVM Sphinx docs using SVN or Git. If you want it, I
can do the changes for you since I have already everything in place.
-- Mikael
2013/12/3 Kai Nacke <kai at redstar.de>
> Hi Rafael,
>
> is there a repository with the static pages or should I simply produce a
> diff between the 2 versions?
>
> Regards,
> Kai
>
> On 03.12.2013 14:30,
2009 Jan 09
1
[LLVMdev] naked assembler / function written entirely in asm
Hi everybody.
I'm having (yet) another look at trying to get naked functions from D (1)
working in our LLVM D Compiler - LDC (2).
I have this test case:
/// D CODE
///
extern(C) int printf(char*, ...);
ulong retval() {
asm { naked; mov EAX, 0xff; mov EDX, 0xaa; ret; }
}
ulong retval2() {
return (cast(ulong)0xaa << 32) | 0xff;
}
void main() {
2009 Dec 09
2
[LLVMdev] Problem with code generated for call using stdcall convention
Hi, I'm trying to run the following module in lli on LLVM 2.6, Windows/MSVS
2008, 32 bits memory model:
---
declare x86_stdcallcc i8* @GetStdHandle(i32)
define i32 @main() {
%handle = call i8* @GetStdHandle(i32 -11)
ret i32 0
}
---
(This small modules that just retrieve the handle to stdout using WIN32
API).
I'm converting it to bytecode using:
llvm-as.exe -f
2013 Aug 26
0
[LLVMdev] Building LLVM 3.3 on Win64
Hi Russel,
I never tried to build LLVM with nmake. With msbuild it works without
problems. You can find a short desription here:
http://wiki.dlang.org/Building_and_hacking_LDC_on_Windows_using_MSVC,
section Build LLVM.
Regards
Kai
On 24.08.2013 21:15, Russell Wallace wrote:
> I'm trying to build LLVM 3.3 using cmake/nmake, Microsoft C++ 2012, on a
> 64-bit Windows 7 system. I
2014 Dec 31
3
[LLVMdev] First class aggregates of small size: split when used in function call
Hello,
In my LLVM frontend (CLR/MSIL), I am currently using first-class aggregates
to represent loaded value types on the "CLR stack".
However, I noticed that when calling external method taking those aggregate
by value, they were not passed as I expected:
%COLORREF = type { i8, i8, i8, i8 }
declare i32 @SetLayeredWindowAttributes(i8*, %COLORREF, i8, i32)
I call this function with
2013 Mar 30
2
[LLVMdev] Missed optimisation opportunities?
I'm writing a front end for an existing interpreted language with slightly
odd semantics for primitive values.
Similar to the values in a database table, any value could be null, even
for non-pointer types.
For example a boolean variable could be true, false, or null.
To model this behaviour, I'm passing an {i1, [type]} around for every
numeric type. And using insertvalue / extractvalue
2009 Jan 07
3
[LLVMdev] LLVM optmization
The following C test program was compiled using LLVM with -O3 option and MSVC with /O2.
The MSVC one is about 600 times faster than the one compiled with the LLVM.
We can see that the for loop in MSVC assembler is solved in the optimization pass more efficiently than that in LLVM.
Is there an way to get a optimization result in LLVM like that of the MSVC?
Manoel Teixeira
#include
2013 Jul 23
0
[LLVMdev] Build Clang and LLVM on Win 8
Hi Giorgio,
here is another description how to compile LLVM on Windows:
http://wiki.dlang.org/Building_and_hacking_LDC_on_Windows_using_MSVC
Maybe this is helpful. I created this for Windows 7 but I also repeated
it successfully on Windows 8.
Regards
Kai
On 22.07.2013 22:51, Giorgio Franceschetti wrote:
> Hi all,
> yes, I do not know python and I installed it only for being able to
2013 Dec 08
1
[LLVMdev] Win32: Crash in DLL created by llvm that calls into the "putchar" function
Hey Jeremy,
(putting the discussion back to the list.)
2013/12/8 Jeremy Lakeman <Jeremy.Lakeman at gmail.com>:
> If I run your demo exe it crashes, if I re-link the dll with VS 2010 it
> errors gracefully;
>
> runtime error R6030
> - CRT not initialized
>
> putchar is a c runtime function.
> I'm betting that your exe doesn't initialise the runtime library?
2013 Jul 25
4
[LLVMdev] Proposing a new 'alloca' parameter attribute to implement the Microsoft C++ ABI
Hi LLVM folks,
To properly implement pass-by-value in the Microsoft C++ ABI, we need to be
able
to take the address of an outgoing call argument slot. This is
http://llvm.org/PR5064 .
Problem
-------
On Windows, C structs are pushed right onto the stack in line with the other
arguments. In LLVM, we use byval to model this, and it works for C structs.
However, C++ records are also passed this