Displaying 20 results from an estimated 100 matches similar to: "[LLVMdev] MemoryBuffer C Bindings - LLVMCreateMemoryBufferWithArray"
2008 May 22
3
[LLVMdev] How to get a return type of a function with LLVM-C API
Hi LLVM-ers,
I am trying to get a return type of a function(from bitcode file) with
LLVM-C API, but there seems no appropriate API to do that.
I've tried to do that with following code,
----
LLVMModuleRef M;
LLVMMemoryBufferRef MemBuf;
LLVMValueRef F; // Function
LLVMTypeRef RetTy;
char *ErrStr;
//
// -- Load shader module
//
2013 Mar 13
1
[LLVMdev] [llvm-c] Copyright notice in language bindings
On Mar 13, 2013, at 6:40 AM, Moritz Maxeiner <moritzmaxeiner at googlemail.com> wrote:
> Hi,
>
> If I write LLVM bindings for a language X, in which I obviously
> need to at least use parts of the llvm-c headers (constants, enums, typedefs, function names and
> signatures) do I need to include the LLVM copyright notice?
>
> Whereas llvm-c has multiple headers (e.g.
2009 Apr 23
2
Replace the first word of a string
Does anybody have a good starting point for how to read the first word
of a string and then, based on several defined pairs, swap it?
I''ve been considering using something like
@split = @message.split(''-'')
if @split[0] == "word"
...
elsif @split[0] == "otherword"
...
end
Even if this is the best way to do it, I''m not sure how to replace
2006 May 19
1
LDAP imaps,pop3s authentication problem
Hi, i'm using LDAP authentication with dovecot, and it's working
flawlessly,until i enable SSL.. (even imaps or pop3s) i can't log in...
if i test the certificates, and the login with the `openssl s_client -
host example.com -port 993 -verify -debug` command, it works, until i
want to log in... it lists the capibilities, but when i login it says
"01 NO LOGIN failed"...
2013 Feb 17
2
[LLVMdev] [llvm-c] LLVMAttribute possible bug
While writing bindings to LLVM for another language via the c api I
noticed that
LLVMAlignment and LLVMStackAlignment do not use 1<<x like all the others,
but 31<<x and 7<x respectively (see below, or here:
http://llvm.org/docs/doxygen/html/Core_8h_source.html#l00148).
It's likely this is as it is intended, but it does look out-of-place
enough that
I thought it might be a
2001 Apr 14
4
Code to hide inaccessible files/directories
I asked about this ability a few weeks ago and the reply was basically
that folks would be interested in seeing it happen. Well, the client
insisted, so I've put together a hack that accomplishes it.
The basic design requirement was that users would not see
files/directories that they did not have at least read access to. This
request came about because we were migrating from a Novell server,
2003 Dec 03
6
Zone Scalability
I''m happily running two four zone/four nic shorewall firewall
configuratoins. Great software, works as expected everytime! We are
conteplating a larger and more complex firewall configuration that may
include as many as twelve zones with trying to cram as many as 8+
interfaces into a single machine. Are there any draw backs to this
amount of zones and interfaces into a single
2013 Mar 13
1
[LLVMdev] [llvm-c] Copyright notice in language bindings
On Mar 13, 2013, at 12:17 PM, Moritz Maxeiner <moritzmaxeiner at googlemail.com> wrote:
> On 03/13/2013 07:26 PM, Chris Lattner wrote:
>> LLVM's license includes a binary redistribution clause:
>> http://llvm.org/docs/DeveloperPolicy.html#license
>
> Hi Chris,
>
> the problem with the binary redistribution clause is that the bindings will not be linked with
2013 Mar 13
0
[LLVMdev] [llvm-c] Copyright notice in language bindings
On 03/13/2013 07:26 PM, Chris Lattner wrote:
> LLVM's license includes a binary redistribution clause:
> http://llvm.org/docs/DeveloperPolicy.html#license
Hi Chris,
the problem with the binary redistribution clause is that the bindings
will not be linked with any part of LLVM.
The bindings will load an LLVM shared library (dll/so/dylib) at runtime
and thus an application compiled
2013 Feb 18
1
[LLVMdev] [llvm-c] Proposal: Make LLVMInitializeNativeTarget and co. non-inline
Hi,
when building llvm as a shared library LLVMInitializeNativeTarget and co.
(located in llvm/Support/TargetSelect) will not get
exported as symbol into the shared library, because they are static inline.
Since they are functions defined in the C API no one else inside LLVM
calls them,
which results in them not being exported.
This is, of course, no problem for C programs using the C API,
2013 Mar 13
2
[LLVMdev] [llvm-c] Copyright notice in language bindings
Hi,
If I write LLVM bindings for a language X, in which I obviously
need to at least use parts of the llvm-c headers (constants, enums,
typedefs, function names and
signatures) do I need to include the LLVM copyright notice?
Whereas llvm-c has multiple headers (e.g. Analysis.h, BitReader.h,
Core.h, etc.) my bindings
only have three files constants.d, types.d and functions.d which
respectively
2016 Sep 12
2
Counterintuitive use of LLVMBool in C-API?
Hi,
I stumbled across the following:
> /* Builds a module from the bitcode in the specified memory buffer,
> returning a
> reference to the module via the OutModule parameter. Returns 0 on success.
> */
> LLVMBool LLVMParseBitcode2(LLVMMemoryBufferRef MemBuf,
> LLVMModuleRef *OutModule);
However in most scenarios i know, a Bool is something like
0 = False
!0 = True
In short:
2013 Sep 30
1
[LLVMdev] RFC: llvm-shlib-test (Was: [llvm] r191029 - llvm-c: Make LLVMGetFirstTarget a proper prototype)
Attached is what I got thus far.
What I'm struggling with is proper integration in build system. What
is in there is just wild guesses from my side, both on autoconf and
cmake variants. It would be great if someone with proper knowledge of
the buildsystems could have a look. Also I'm not sure how to properly
handle compilation on msvc - clearly "-std=c11 -Wstrict-prototypes" is
2016 Sep 12
1
Counterintuitive use of LLVMBool in C-API?
Of course, this is normal for C-APIs. But maybe change the name to
LLVMResult to propagate the real use? I am not arguing about the results
themself. They are standard. But the name is missguiding. As long as it's
consistent i know that i have to write an extra record operator in Delphi
to reflect this.
2016-09-12 11:11 GMT+02:00 David Chisnall <David.Chisnall at cl.cam.ac.uk>:
> On
2006 Apr 26
2
Ruby On Rails Salary in the UK? how much?
Hi,
What do you think is a reasonable salary for a ROR programmer in
Manchester, UK?
If you''re working with ROR and in the UK i''d be interested in knowing
your salary :-)
Your opinions would be very valuable to me
JD
--
Posted via http://www.ruby-forum.com/.
2017 Sep 18
0
Counterintuitive use of LLVMBool in C-API?
Okay after translating the headers to Delphi, i found more inconsistencies:
> LLVMTypeRef LLVMFunctionType(LLVMTypeRef ReturnType,
> LLVMTypeRef *ParamTypes, unsigned ParamCount,
> LLVMBool IsVarArg);
>
In this case it is the other way around. 0 means False and anything else
means true :/ (so it acts more like a
2004 Feb 04
2
Audo quality problem
Hello.
First of all, thanx for that great codec. I would encode all my music with Ogg Vorbis in the future, if it hadn't been for some samples I encoded for test purposes: Everything was great as long a I used "natural" sounds/music, but certain pieces of synthesized music (specially techno) contained very audible artifacts even at high bitrates.
So I just went on using mp3 for
2009 Sep 24
0
[LLVMdev] MemoryBuffer
On 2009-09-24, at 18:56, OvermindDL1 wrote:
> Out of curiosity, what code in Clang is optimized by doing a pointer
> derefence then compare to 0, rather then just comparing two points
> directly? Does not seem that efficient when laid out like that,
> which is why I am curious what code actually is helped by that
> pattern?
Consider parsing an integer:
// With NUL
2009 Nov 18
1
[LLVMdev] [PATCH] include/llvm/Support/MemoryBuffer.h: remove spurious @verbatim
Hi,
http://llvm.org/doxygen/classllvm_1_1MemoryBuffer.html
shows
"the file, and that this character will read as '\0'. "
as a "verbatim text" box. This looks ugly and is probably a
mistake. The attached patch removes this extra @verbatim
... @endverbatim from comments.
-------------- next part --------------
A non-text attachment was scrubbed...
Name:
2010 Apr 27
0
[LLVMdev] LLVM 2.7 build failure: no matching function for call to 'llvm::MemoryBuffer::getFile
make[4]: Entering directory `/usr/local/src/llvm-2.7/tools/clang/lib/Basic'
llvm[4]: Compiling Builtins.cpp for Release build
llvm[4]: Compiling ConvertUTF.c for Release build
llvm[4]: Compiling Diagnostic.cpp for Release build
llvm[4]: Compiling FileManager.cpp for Release build
llvm[4]: Compiling IdentifierTable.cpp for Release build
llvm[4]: Compiling SourceLocation.cpp for Release build