Displaying 20 results from an estimated 800 matches similar to: "[LLVMdev] LLVM dllimport"
2010 Dec 27
0
[LLVMdev] LLVM dllimport
Hi Dylan,
If you have "import libraries", you may call them with general calling
conversions.
Without import libraries, for example;
declare dllimport i32 @foo(i32)
@quux = dllimport global i32
define i32 @bar() nounwind {
%a = load i32* @quux
%r = call i32 @foo(i32 %a)
ret i32 %r
}
.globl _bar
_bar:
subl $4, %esp
movl __imp__quux, %eax
2010 Dec 14
0
[LLVMdev] Access DLL functions from LLVM IR
?Dear LLVM Developer,
I would like to ask how do i call a function that is specified in a dll file that has been made by c or c++ from llvm assembly and how do I expose llvm bitcode made libraries that have been aoted to c/c++?
Regards,
Dylan Borg
+356 99214902
borgdylan at hotmail.com
borgdylang at gmail.com
-------------- next part --------------
An HTML
2014 May 24
2
make dllimport/dllexport attributes work with mingw (and others)
The following patch changes export.h so that the dllimport/dllexport
attributes work with mingw/mingw-w64 and others:
- changes _declspec keyword to __declspec: the former may not be
defined by some toolchains.
- changes the _MSC_VER condition to universally _WIN32: MSVC, as well
as GCC supports this.
Attached patch: declspec.diff
Regards.
--
O.S.
-------------- next part --------------
2014 May 25
2
make dllimport/dllexport attributes work with mingw (and others)
Erik de Castro Lopo wrote:
> Ozkan Sezer wrote:
>
>> My apologies, obviously sent an old testing patch. Correct one is
>> attached (declspec2.diff). Compilation tested using MinGW (gcc-3.4.5,
>> binutils-2.20), and MinGW-w64 (gcc-4.5.4, binutils-2.21.90.)
>
> lvqcl,
>
> Can you please validate this new patch?
It works, but only if i call ./configure without
2014 May 25
1
make dllimport/dllexport attributes work with mingw (and others)
Ozkan Sezer wrote:
> flac.exe built with mingw with or without the dllimport/dllexport patch
> always requires libFLAC-8.dll (because flac/Makefile.am has libFLAC.la
> in flac_LDADD and not libFLAC-static.la), and the patch doesn't make it
> any more or any less dependent on any 'foreign' dlls: the patch doesn't
> change the existent situation in that regard. If
2006 May 02
2
Bug: invalid nesting of inline markup across link labels
Hi John,
there?s a bug in Markdown.pl:
[foo*bar](#) [baz*quux](#)
This expands to the following:
<p><a href="#">foo<em>bar</a> <a href="#">baz</em>quux</a></p>
Those `*` should either be disregarded or the tags should nest
correctly:
1. <p><a href="#">foo*bar</a> <a
2014 May 25
0
make dllimport/dllexport attributes work with mingw (and others)
On 5/25/14, lvqcl <lvqcl.mail at gmail.com> wrote:
> Erik de Castro Lopo wrote:
>
>> Ozkan Sezer wrote:
>>
>>> My apologies, obviously sent an old testing patch. Correct one is
>>> attached (declspec2.diff). Compilation tested using MinGW (gcc-3.4.5,
>>> binutils-2.20), and MinGW-w64 (gcc-4.5.4, binutils-2.21.90.)
>>
>> lvqcl,
>>
2014 May 24
0
make dllimport/dllexport attributes work with mingw (and others)
Ozkan Sezer wrote:
> My apologies, obviously sent an old testing patch. Correct one is
> attached (declspec2.diff). Compilation tested using MinGW (gcc-3.4.5,
> binutils-2.20), and MinGW-w64 (gcc-4.5.4, binutils-2.21.90.)
lvqcl,
Can you please validate this new patch?
Cheers,
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
2014 May 24
2
make dllimport/dllexport attributes work with mingw (and others)
On 5/24/14, lvqcl <lvqcl.mail at gmail.com> wrote:
> Ozkan Sezer <sezeroz at gmail.com> ?????(?) ? ????? ?????? Sat, 24 May 2014
> 10:16:15 +0400:
>
>> - changes the _MSC_VER condition to universally _WIN32: MSVC, as well
>> as GCC supports this.
>
> MSYS/MinGW 4.8.3, 4.9.0 can't compile code from git after this patch:
>
> format.c:47:22: error:
2010 Nov 03
1
Recoding -- test whether number begins with a certain number
Dear R community,
I have a question concerning recoding of a variable. I have a data set
in which there is a variable devoted to the ISCO code describing the
occupation of this certain individual
(http://www.ilo.org/public/english/bureau/stat/isco/isco88/major.htm).
Every type of occupation begins with a number and every number added to
this number describes th occupation more detailed.
Now my
2016 Feb 16
2
DllImport: How to specify the library to link to?
Hi,
I am absolutely new to LLVM. Currently reading through documentation and
the C-API (which i want to use). As i am working on Windows, i was
curios on how to specify an import which links to a function exported by
a dll. The DLLStorageClass seems to be the wy to go, this seems clear.
But after declaring a function for import, how do i specify the DLL the
function is included in?
2009 Sep 03
5
abind, but on lists?
I'm trying to massage some data from Matlab into R. The matlab file
has a "struct array" which when imported into R using the R.matlab
package, becomes an R list with 3+ dimensions, the first of which
corresponds to the structure fields, with corresponding row names, and
the second and third+ dimensions correspond to the dimensions of the
original struct array (as matlab
2013 Mar 26
6
[LLVMdev] Feedback required on proper dllexport/import implementation
Hello,
while improving and extending support for dllexport/import I have
noticed that the current way these are implemented is problematic and I
would like some input on how to proceed.
Currently dllexport/dllimport is treated as linkage type. This conflicts
with inlined functions because there is no linkage for the combination
of both. On first though, combining both doesn't make sense, but
2013 Apr 23
0
[LLVMdev] Feedback required on proper dllexport/import implementation
Hi Nico, Reid, and Anton,
I missed the discussion when I implemented dllexport/dllimport for our local tree. I
essentially implemented your approach#1. I was trying to avoid the various
external_linkage + some_attribute approaches because it seems that external_linkage
would imply the external linkage without the dllimport/dllexport semantics, and there
may be existing compiler codes that rely on
2006 Nov 27
1
R.DLL mapping by P/Invoke
After a long processing, I was able to create a version of a small C# class
that was able to emulate the rproxy by P/Invoke. This is mostly to find a
workaround a performance problem of the StatConnector.
It's almost work but ... I have strange memory exception when I call the
print function. The variable seems to not survive from one call to the
other.
As there is no debug symbol for
2011 Feb 14
3
help with aggregate()
Hi,
I am trying to aggregate some data and I am confused by the results.
I load a data frame "all" from a csv file, and then I do:
(FOO,BAR,X,Y come from the header line in the csv file,
BTW, how do I rename a column?)
byFOO <- aggregate(list(all$BAR,all$QUUX,all$X/all$Y),
by = list(FOO=all$FOO),
FUN = mean);
I expect a data frame with 4
2013 Apr 23
2
[LLVMdev] Feedback required on proper dllexport/import implementation
On 23.04.2013 19:10, Gao, Yunzhong wrote:
> I missed the discussion when I implemented dllexport/dllimport for our local tree. I
> essentially implemented your approach#1. I was trying to avoid the various
> external_linkage + some_attribute approaches because it seems that external_linkage
> would imply the external linkage without the dllimport/dllexport semantics, and there
> may
2005 May 21
2
Possible (ab)use of lexical scoping in R ?
Dear list,
I wish to define a set of functions *auxilliary* to another set of
"main" ones, and I wonder if there is some "clever" way do do this using
lexical scoping. Looking for that in the list's archives did not get me
easily understood answers. Perusing MASS (1st, 2nd, 3rd and 4th
editions!) and "Programming S" wasn't of much help either...
R easily
2007 Jun 14
2
FLAC: library for C#
Harry Sack wrote:
>
> but aren't they C++ headers en lib's?
Not C++, C.
> I have no idea how I can include a C++
> header in a C# project.
> It this even possible?
Yes. Google for "dllimport csharp".
Erik
--
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
2020 Oct 12
2
Lookup sid with libsmbclient (invoked from c# on mono)
Typical example:
Here is some search & export for libsmbclient:
adiant at ubuntu:/usr/lib/x86_64-linux-gnu$ nm -D libsmbclient.so.0 |grep
cli_rpc_pipe_open_noauth_transport
<nothing>
adiant at ubuntu:/usr/lib/x86_64-linux-gnu$ nm -D libsmbclient.so.0 |grep
cli_rpc_pipe_open
U cli_rpc_pipe_open_noauth
adiant at ubuntu:/usr/lib/x86_64-linux-gnu$ nm -D libsmbclient.so.0