Displaying 6 results from an estimated 6 matches for "llvmsetlinkage".
2010 Jan 11
2
[LLVMdev] Operations on constant array value?
2010/1/11 Garrison Venn <gvenn.cfe.dev at gmail.com>
> I have not tried this, but a linkage type of PrivateLinkage would not add
> to the symbol table according
> to the doc.
>
> LLVMSetLinkage(g, LLVMPrivateLinkage);
>
Thanks - I hadn't thought of that.
>
> Garrison
>
> On Jan 11, 2010, at 14:03, James Williams wrote:
>
> 2010/1/11 Eli Friedman <eli.friedman at gmail.com>
>
>> On Mon, Jan 11, 2010 at 7:07 AM, James Williams <junk at giantblob....
2010 Jan 11
0
[LLVMdev] Operations on constant array value?
I have not tried this, but a linkage type of PrivateLinkage would not add to the symbol table according
to the doc.
LLVMSetLinkage(g, LLVMPrivateLinkage);
Garrison
On Jan 11, 2010, at 14:03, James Williams wrote:
> 2010/1/11 Eli Friedman <eli.friedman at gmail.com>
> On Mon, Jan 11, 2010 at 7:07 AM, James Williams <junk at giantblob.com> wrote:
> > Hi,
> >
> > I've read http://llvm.or...
2010 Jan 11
0
[LLVMdev] Operations on constant array value?
...might be useful, however rehashed.
Garrison
On Jan 11, 2010, at 16:34, James Williams wrote:
> 2010/1/11 Garrison Venn <gvenn.cfe.dev at gmail.com>
> I have not tried this, but a linkage type of PrivateLinkage would not add to the symbol table according
> to the doc.
>
> LLVMSetLinkage(g, LLVMPrivateLinkage);
>
> Thanks - I hadn't thought of that.
>
> Garrison
>
> On Jan 11, 2010, at 14:03, James Williams wrote:
>
>> 2010/1/11 Eli Friedman <eli.friedman at gmail.com>
>> On Mon, Jan 11, 2010 at 7:07 AM, James Williams <junk at gian...
2010 Jan 11
2
[LLVMdev] Operations on constant array value?
2010/1/11 Eli Friedman <eli.friedman at gmail.com>
> On Mon, Jan 11, 2010 at 7:07 AM, James Williams <junk at giantblob.com>
> wrote:
> > Hi,
> >
> > I've read http://llvm.org/docs/LangRef.html#t_array and
> > http://llvm.org/docs/GetElementPtr.html and if I've understood right
> there
> > are no operations that act directly on arrays -
2010 Aug 12
3
[LLVMdev] LLVM-C: Calling functions contained in other libraries
...MValueRef d(LLVMModuleRef module) {
LLVMValueRef result;
LLVMBasicBlockRef block;
LLVMBuilderRef builder = LLVMCreateBuilder();
LLVMValueRef fullUsername = LLVMAddFunction(module, "NSFullUserName", LLVMFunctionType(LLVMPointerType(LLVMInt8Type(), 0), NULL, 0, 0));
LLVMSetLinkage(fullUsername, LLVMExternalLinkage);
result = LLVMAddFunction(module, "MyFunction", LLVMFunctionType(i8Ptr(), NULL, 0, 0));
block = LLVMAppendBasicBlock(result, "entrypoint");
LLVMPositionBuilderAtEnd(builder, block);
LLVMValueRef returnVal = LLVMBuildCa...
2012 Sep 27
0
[LLVMdev] Possible bug or misunderstanding of feature LLVMConstIntOfString
...// "C" printf function;
LLVMTypeRef vpFnPrintfArgsType[] = { LLVMPointerType(LLVMInt8Type(), 0)
};
LLVMTypeRef vFnPrintfType = LLVMFunctionType(LLVMInt32Type(),
vpFnPrintfArgsType, 1, 1);
LLVMValueRef vFnPrintf = LLVMAddFunction(modCEx, "printf",
vFnPrintfType);
LLVMSetLinkage(vFnPrintf, LLVMExternalLinkage);
// printf with arguments
LLVMValueRef printfArgTemplate = LLVMBuildGlobalStringPtr(bldr,
template, "privateString");
LLVMValueRef vpArgsPrintf[] = { printfArgTemplate, testValue };
LLVMBuildCall(bldr, vFnPrintf, vpArgsPrintf, 2, "pri...