search for: linkagetyp

Displaying 20 results from an estimated 61 matches for "linkagetyp".

Did you mean: linkagetype
2010 Mar 23
2
[LLVMdev] How to avoid memory leaks
...t;unsigned int const, llvm::PATypeHolder> const&) (in /home/gabi/vgen/Debug/vgen) ==20504==    by 0x905530: llvm::PointerType::get(llvm::Type const*, unsigned int) (in /home/gabi/vgen/Debug/vgen) ==20504==    by 0x8B1A88: llvm::Function::Function(llvm::FunctionType const*, llvm::GlobalValue::LinkageTypes, llvm::Twine const&, llvm::Module*) (in /home/gabi/vgen/Debug/vgen) ==20504==    by 0x8EC36B: llvm::Module::getOrInsertFunction(llvm::StringRef, llvm::FunctionType const*, llvm::AttrListPtr) (in /home/gabi/vgen/Debug/vgen) ==20504==    by 0x8EC46E: llvm::Module::getOrInsertFunction(llvm::Stri...
2010 May 13
1
[LLVMdev] How to create Global Variables using LLVM API?
I am using llvm-2.6. In the online documentation, the signature is GlobalVariable::GlobalVariable ( const Type * Ty, bool isConstant, LinkageTypes Linkage, Constant * Initializer = 0, const Twine & Name = "", bool ThreadLocal = false, unsigned AddressSpace = 0 ) the link to the documenation is http://llvm.org/doxygen/classllvm_1_1GlobalVariable.html There are two constructors given. Second constructor sign...
2008 May 09
3
[LLVMdev] llvm gcc 4.0 not compiling
...8: error: ‘static void* llvm::User::operator new(size_t)’ is private ../../llvm-gcc-4.0/gcc/llvm-backend.cpp:1015: error: within this context /home/local/lefever/llvm/080509/llvm_optimized/include/llvm/Function.h:113: error: ‘llvm::Function::Function(const llvm::FunctionType*, llvm::GlobalValue::LinkageTypes, const std::string&, llvm::Module*)’ is private ../../llvm-gcc-4.0/gcc/llvm-backend.cpp:1015: error: within this context make[1]: *** [llvm-backend.o] Error 1
2011 Jan 12
2
[LLVMdev] How to define a global variable?
...t; On 12 January 2011 22:28, Rob Nikander <rob.nikander at gmail.com> wrote: >> @x = external global %0* > > Hi Rob, > > Try removing the 'extern', as it implies the variable storage is > elsewhere (ie. another object file). > I have to pass something from the LinkageTypes enum to the constructor. I tried others, like GlobalVariable::InternalLinkage, which dumps as "internal global" but the error was the same. Rob
2004 Oct 26
2
[LLVMdev] Getting started with GC
...deGen/Generic/GC/alloc_loop.ll which we tried with the following... (showing LLVM checked out from cvs a few days ago, similar output with release 1.3) $ llvm-as alloc_loop.ll $ lli alloc_loop.bc lli: Globals.cpp:81: llvm::GlobalVariable::GlobalVariable(const llvm::Type*, bool, llvm::GlobalValue::LinkageTypes, llvm::Constant*, const std::string&, llvm::Module*): Assertion `Initializer->getType() == Ty && "Initializer should be the same type as the GlobalVariable!"' failed. lli((anonymous namespace)::PrintStackTrace()+0x1a)[0x857f21a] lli((anonymous namespace)::SignalHandle...
2009 Oct 14
2
[LLVMdev] GlobalValue.h:116 error
When I attempt to follow any tutorial for llvm and add the `llvm-config --cxxflags --ldflags --libs all` line to my GXX_FLAGS, g++ chokes on llvm/GlobalValue.h, complaining of an invalid cast from int to llvm::GlobalValue::LinkageTypes. I receive this error under both Red Hat and Ubuntu and the version of G++ I am using is 4.1.2. Thanks in advance, Jared -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091014/00b87370/attachment.html>
2010 May 12
0
[LLVMdev] How to create Global Variables using LLVM API?
Hi subramanyam, > Actually, the signature of the constructor given in the online documentation > is different from the actual source code. which bit of the documentation? Any chance of a patch that fixes it? Ciao, Duncan.
2003 Nov 21
1
[LLVMdev] Linkage Types
...le, meaning that it participates in linkage and can be used to resolve external symbol references. But, there's no way to do this in the code. You _must_ supply the third argument to GlobalVariable's constructor (it doesn't default) and the only values accepted are GlobalValue::LinkageTypes. If I use "ExternalLinkage" is this the same as providing nothing in assembly and getting the default "externally visible"? Reid. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes...
2008 Jun 06
2
[LLVMdev] Index to libraries?
There wouldn't happen to be an index telling one which libraries define which symbols, would there? For example, if I'm told alvm.o: In function `llvm::Function::Create(llvm::FunctionType const*, llvm::GlobalValue::LinkageTypes, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, llvm::Module*)': /farhome/hendrik/dv/llvm/llvm/include/llvm/Function.h:118: undefined reference to `llvm::User::operator new(unsigned int, unsigned int)' or /farhome/hendrik/dv/lang/al...
2014 Aug 02
2
[LLVMdev] LLVM Basic Program Compilation
Thank you Chris. I am using llvm-3.4.2. I am facing the same issue when using clang++ as well. $ clang++ try.cpp -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS `llvm-config --cxxflags --ldflags --libs` -S -emit-llvm gives me errors $clang++ try.cpp -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -S -emit-llvm $ lli try.s gives me Program used external function
2010 May 12
2
[LLVMdev] How to create Global Variables using LLVM API?
Thanks. It works. Actually, the signature of the constructor given in the online documentation is different from the actual source code. Nick Lewycky wrote: > > subramanyam wrote: >> >> I am new to LLVM API. and I am experimenting with it. >> I want to create Global Variables in a module. >> I am able to create local variables using IRBuilder class. I tried using
2008 May 09
0
[LLVMdev] llvm gcc 4.0 not compiling
...void* llvm::User::operator new(size_t)’ is private > ../../llvm-gcc-4.0/gcc/llvm-backend.cpp:1015: error: within this context > /home/local/lefever/llvm/080509/llvm_optimized/include/llvm/Function.h:113: > error: ‘llvm::Function::Function(const llvm::FunctionType*, > llvm::GlobalValue::LinkageTypes, const std::string&, llvm::Module*)’ is > private > ../../llvm-gcc-4.0/gcc/llvm-backend.cpp:1015: error: within this context > make[1]: *** [llvm-backend.o] Error 1 > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu...
2004 Oct 27
0
[LLVMdev] Getting started with GC
...l > which we tried with the following... (showing LLVM checked out from cvs a few days ago, similar > output with release 1.3) > > $ llvm-as alloc_loop.ll > $ lli alloc_loop.bc > lli: Globals.cpp:81: llvm::GlobalVariable::GlobalVariable(const llvm::Type*, bool, llvm::GlobalValue::LinkageTypes, llvm::Constant*, const std::string&, llvm::Module*): Assertion `Initializer->getType() == Ty && "Initializer should be the same type as the GlobalVariable!"' failed. > lli((anonymous namespace)::PrintStackTrace()+0x1a)[0x857f21a] > lli((anonymous namespace)::Si...
2009 Aug 01
1
[LLVMdev] Inserting Instructions (pass)
...ion *pi = bi; pi->getParent()->getInstList().insert(pi, Iasm); I try to build a CallInst with a function, but I have still some problems Function *NewF = new Function(asm_Ftype,???,???); CallInst* NewCInst = new CallInst(NewF, ??? But where to set the InlineAsm and what type of LinkageType is required .? Thanks for help Michael Von: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] Im Auftrag von Chris Lattner Gesendet: Samstag, 1. August 2009 07:24 An: LLVM Developers Mailing List Betreff: Re: [LLVMdev] Inserting Instructions (pass) On Jul 31...
2016 Nov 20
3
uninitialized values in Attributes.cpp
...ed int, llvm::ArrayRef<llvm::Attribute::AttrKind>) (Attributes.cpp:712) ==29299== by 0x146F9AC: llvm::Intrinsic::getAttributes(llvm::LLVMContext&, llvm::Intrinsic::ID) (Intrinsics.gen:20104) ==29299== by 0x146F3A0: llvm::Function::Function(llvm::FunctionType*, llvm::GlobalValue::LinkageTypes, llvm::Twine const&, llvm::Module*) (Function.cpp:277) ==29299== by 0x1CD2B36: Create (Function.h:106) ==29299== by 0x1CD2B36: llvm::LLParser::ParseFunctionHeader(llvm::Function*&, bool) (LLParser.cpp:4766) ==29299== by 0x1CCE2C2: llvm::LLParser::ParseDeclare() (LLParser.cpp:4...
2011 Jan 13
0
[LLVMdev] How to define a global variable?
On 12 January 2011 23:38, Rob Nikander <rob.nikander at gmail.com> wrote: > I have to pass something from the LinkageTypes enum to the > constructor.  I tried others, like GlobalVariable::InternalLinkage, > which dumps as "internal global" but the error was the same. To be honest, your IR is a bit odd. I'm not a JIT expert, but here are a few things that will help you find your way through LLVM.....
2004 Oct 27
2
[LLVMdev] Getting started with GC
On Tue, Oct 26, 2004 at 11:17:00PM -0500, Chris Lattner wrote: > On Tue, 26 Oct 2004, Tom Brown wrote: > > $ llvm-as alloc_loop.ll > > $ lli alloc_loop.bc > > lli: Globals.cpp:81: llvm::GlobalVariable::GlobalVariable(const llvm::Type*, bool, llvm::GlobalValue::LinkageTypes, llvm::Constant*, const std::string&, llvm::Module*): Assertion `Initializer->getType() == Ty && "Initializer should be the same type as the GlobalVariable!"' failed. > > lli((anonymous namespace)::PrintStackTrace()+0x1a)[0x857f21a] > > lli((anonymous name...
2014 Feb 12
2
[LLVMdev] Fwd: [windows) how to use weak references with llvm 3.4 and windows?
So instead of using linkagetypes.weak I should use externalweaklinkage ? Le 11 févr. 2014 18:29, "Reid Kleckner" <rnk at google.com> a écrit : > You'd have to use extern_weak linkage. Clang compiles the foo declaration > to: > $ clang -cc1 -emit-llvm -o - t.c | grep declare.*@foo > declare exter...
2010 Jan 11
0
[LLVMdev] Operations on constant array value?
Sorry to keep this thread alive, but I'm learning so ... There is more. The doc for GlobalValue::LinkageTypes or the C API LLVMLinkage is not as clear as the lang ref manual. See: http://llvm.org/docs/LangRef.html#linkage. I'm pointing this out because something like LinkerPrivateLinkage (LLVMLinkerPrivateLinkage), or another one, might be more appropriate to your throw away use case (if I understan...
2013 Mar 26
6
[LLVMdev] Feedback required on proper dllexport/import implementation
...unctions are placed into COMDAT sections. The latter cannot be expressed because it requires linkonce_odr and dllexport linkage. The question now is how to implement this. After a brief discussion, I can think of four ways: 1. Add additional linkage type(s) for the combinations to GlobalValue::LinkageTypes. This appears to be the least invasive way, but adds new linkage types to an already large list. 2. Handle dllexport/import similar to ELF visibility by adding new "visibility" types to GlobalValue::VisibilityTypes and IR visibility styles. This feels like kind of a ba...