search for: constantscontext

Displaying 19 results from an estimated 19 matches for "constantscontext".

2012 Dec 18
2
[LLVMdev] GetElementPtrConstantExpr
Hi to all, I need the class in object, but the file ConstantsContext,h isn't installed. What can I do? Copy that header under include? It's an installation bug? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121218/e1130d0a/attachment.html>
2012 Dec 29
2
[LLVMdev] GetElementPtrConstantExpr question
...is a GetElementPtrConstantExpr, isn't it? My question is: how can I instantiate a class that represents that instruction part so that I can perform some changes in it? I tried the class GetElementPtrConstantExpr but it seems to be a private class to Constants.cpp (I saw a comment in lib/VMCore/ConstantsContext.h about that). Thanks in advance, Eduardo
2011 Jun 24
2
[LLVMdev] inefficiencies in ConstantUniqueMap ?
Hi, Consider ConstantUniqueMap::getOrCreate() (in lib/VMCore/ConstantsContext.h): /// getOrCreate - Return the specified constant from the map, creating it if /// necessary. ConstantClass *getOrCreate(const TypeClass *Ty, ValRefType V) { MapKey Lookup(Ty, V); ConstantClass* Result = 0; ... For array (or struct or vector) constants, typically: ValType = v...
2012 Dec 18
0
[LLVMdev] GetElementPtrConstantExpr
Alessio Giovanni Baroni <alessiogiovanni.baroni at gmail.com> writes: > I need the class in object, but the file ConstantsContext,h isn't installed. > > What can I do? Copy that header under include? It's an installation bug? That's an internal header, not part of the public API. Why do you need the classes declared on that header?
2010 Jan 18
5
[LLVMdev] [patch] Union Types - work in progress
...tType(const Type *ElemTy) { + return ElemTy->getTypeID() != VoidTyID && ElemTy->getTypeID() != LabelTyID && + ElemTy->getTypeID() != MetadataTyID && ! isa<FunctionType>(ElemTy); +} Please use "!ElemTy->isVoidTy()" etc. --- lib/VMCore/ConstantsContext.h (revision 93451) +template<> +struct ConstantKeyData<ConstantUnion> { + typedef Constant* ValType; + static ValType getValType(ConstantUnion *CS) { CU not CS. LLParser.cpp: In LLParser::ParseUnionType, you can use SmallVector instead of std::vector for ParamsList & Params...
2010 Jan 28
0
[LLVMdev] [patch] Union Types - work in progress
...urn ElemTy->getTypeID() != VoidTyID && ElemTy->getTypeID() != > LabelTyID && > + ElemTy->getTypeID() != MetadataTyID && > !isa<FunctionType>(ElemTy); > +} > > Please use "!ElemTy->isVoidTy()" etc. > > --- lib/VMCore/ConstantsContext.h (revision 93451) > > +template<> > +struct ConstantKeyData<ConstantUnion> { > + typedef Constant* ValType; > + static ValType getValType(ConstantUnion *CS) { > > CU not CS. > > > LLParser.cpp: > > In LLParser::ParseUnionType, you can use Sma...
2010 Jan 28
0
[LLVMdev] [patch] Union Types - work in progress
...urn ElemTy->getTypeID() != VoidTyID && ElemTy->getTypeID() != > LabelTyID && > + ElemTy->getTypeID() != MetadataTyID && > !isa<FunctionType>(ElemTy); > +} > > Please use "!ElemTy->isVoidTy()" etc. > > --- lib/VMCore/ConstantsContext.h (revision 93451) > > +template<> > +struct ConstantKeyData<ConstantUnion> { > + typedef Constant* ValType; > + static ValType getValType(ConstantUnion *CS) { > > CU not CS. > > > LLParser.cpp: > > In LLParser::ParseUnionType, you can use Sma...
2015 Aug 07
3
[LLVMdev] Ideas for making llvm-config --cxxflags more useful
...o out-of-line virtual method definitions; its vtable will be emitted in every translation unit [-Wweak-vtables] struct PassRegistrationListener { ^ In file included from ../lib/IR/Instructions.cpp:16: In file included from ../lib/IR/LLVMContextImpl.h:19: In file included from ../lib/IR/ConstantsContext.h:25: ../include/llvm/Support/raw_ostream.h:321:7: warning: 'raw_pwrite_stream' has no out-of-line virtual method definitions; its vtable will be emitted in every translation unit [-Wweak-vtables] class raw_pwrite_stream : public raw_ostream { ^ ../include/llvm/Support/raw_ostre...
2009 Aug 26
7
[LLVMdev] inlining hint
...because of abstraction and other things, the code may be compiled to something much larger than the source looks. The second part of this is that there are a lot of reasons for things to be defined inline in C++ even if we don't want it to actually be inlined. For example, lib/VMCore/ConstantsContext.h:349 has a massive inline function that is there because it is part of a template specialization and *it is more convenient* to define it inline. I really don't think that method should be inlined, but it makes the source code tidier to do that. There are several other "good&qu...
2011 Jun 24
0
[LLVMdev] inefficiencies in ConstantUniqueMap ?
On Jun 24, 2011, at 8:28 AM, Jay Foad wrote: > Hi, > > Consider ConstantUniqueMap::getOrCreate() (in lib/VMCore/ConstantsContext.h): > > /// getOrCreate - Return the specified constant from the map, creating it if > /// necessary. > ConstantClass *getOrCreate(const TypeClass *Ty, ValRefType V) { > MapKey Lookup(Ty, V); > ConstantClass* Result = 0; > ... > > For array (or struct or vec...
2012 Dec 18
2
[LLVMdev] GetElementPtrConstantExpr
...ble: @yyy = linkonce_odr constant %xxx { [4 x i8] c"hello\00" }, but it's wrong. How do I do? 2012/12/18 Óscar Fuentes <ofv at wanadoo.es> > Alessio Giovanni Baroni <alessiogiovanni.baroni at gmail.com> writes: > > > I need the class in object, but the file ConstantsContext,h isn't > installed. > > > > What can I do? Copy that header under include? It's an installation bug? > > That's an internal header, not part of the public API. > > Why do you need the classes declared on that header? > > ________________________________...
2009 Aug 26
0
[LLVMdev] inlining hint
On Wed, Aug 26, 2009 at 11:58 AM, Dale Johannesen<dalej at apple.com> wrote: > > On Aug 26, 2009, at 11:54 AMPDT, Devang Patel wrote: > >> On Wed, Aug 26, 2009 at 10:59 AM, Dale Johannesen<dalej at apple.com> wrote: >>> >>> You may have noticed I added an "inlinehint" attribute to the IR >>> yesterday, to represent user declarations
2010 Jan 16
0
[LLVMdev] [patch] Union Types - work in progress
OK here's the patch for real this time :) On Fri, Jan 15, 2010 at 4:36 PM, Talin <viridia at gmail.com> wrote: > Here's a work in progress of the union patch. Note that the test "union.ll" > does not work, so you probably don't want to check this in as is. However, > I'd be interested in any feedback you're willing to give. > > -- > -- Talin
2010 Jan 16
2
[LLVMdev] [patch] Union Types - work in progress
Here's a work in progress of the union patch. Note that the test "union.ll" does not work, so you probably don't want to check this in as is. However, I'd be interested in any feedback you're willing to give. -- -- Talin -------------- next part -------------- An HTML attachment was scrubbed... URL:
2009 Aug 26
0
[LLVMdev] inlining hint
...are a lot of reasons for things > to be defined inline in C++ even if we don't want it to actually be > inlined. I don't think those are _good_ reasons though: If one doesn't want a C+ + function to be inlined, one shouldn't define it inline. > For example, lib/VMCore/ConstantsContext.h:349 has a > massive inline function that is there because it is part of a template > specialization and *it is more convenient* to define it inline. I > really don't think that method should be inlined, but it makes the > source code tidier to do that. There are several other &...
2015 Aug 07
2
[LLVMdev] Ideas for making llvm-config --cxxflags more useful
...efinitions; > its vtable will be emitted in every translation unit [-Wweak-vtables] > struct PassRegistrationListener { > ^ > In file included from ../lib/IR/Instructions.cpp:16: > In file included from ../lib/IR/LLVMContextImpl.h:19: > In file included from ../lib/IR/ConstantsContext.h:25: > ../include/llvm/Support/raw_ostream.h:321:7: warning: 'raw_pwrite_stream' has no out-of-line virtual method > definitions; its vtable will be emitted in every translation unit [-Wweak-vtables] > class raw_pwrite_stream : public raw_ostream { > ^ > ../inclu...
2009 Aug 26
2
[LLVMdev] inlining hint
On Aug 26, 2009, at 11:54 AMPDT, Devang Patel wrote: > On Wed, Aug 26, 2009 at 10:59 AM, Dale Johannesen<dalej at apple.com> > wrote: >> You may have noticed I added an "inlinehint" attribute to the IR >> yesterday, to represent user declarations that hint inlining would be >> a good idea ("inline" keyword). Chris and I have been discussing how
2015 Aug 07
2
[LLVMdev] Ideas for making llvm-config --cxxflags more useful
On Fri, Aug 7, 2015 at 10:22 AM, Hans Wennborg via llvm-dev < llvm-dev at lists.llvm.org> wrote: > On Thu, Aug 6, 2015 at 12:04 PM, David Chisnall via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > > [Ooops, sent to the old list address by mistake] > > > > On 30 Jul 2015, at 21:04, tom at stellard.net wrote: > >> > >> For flags like
2010 Feb 10
3
[LLVMdev] [patch] Union Types - work in progress
...idTyID && ElemTy->getTypeID() != >> LabelTyID && >> + ElemTy->getTypeID() != MetadataTyID && >> !isa<FunctionType>(ElemTy); >> +} >> >> Please use "!ElemTy->isVoidTy()" etc. >> >> --- lib/VMCore/ConstantsContext.h (revision 93451) >> >> +template<> >> +struct ConstantKeyData<ConstantUnion> { >> + typedef Constant* ValType; >> + static ValType getValType(ConstantUnion *CS) { >> >> CU not CS. >> >> >> LLParser.cpp: >> >&...