search for: getstruct

Displaying 2 results from an estimated 2 matches for "getstruct".

2011 Feb 04
0
[LLVMdev] ConstantBuilder proposal
If you remove all the 'static's from the member functions, it'd work more like IRBuilder. It would also allow you to take the LLVMContext& as a constructor parameter, so that methods like this: On Fri, Feb 4, 2011 at 6:57 PM, Talin <viridia at gmail.com> wrote: >   /// GetStruct - return a constant struct given a context and a vector >   /// of elements. >   static Constant *GetStruct( >     LLVMContext &Context, >     const std::vector<Constant*> &V, >     bool Packed = false) { >     return ConstantStruct::get(Context, V, Packed); >   }...
2011 Feb 04
3
[LLVMdev] ConstantBuilder proposal
...f the array return GetArray( ArrayType::get(ElementTy, ArgEnd - ArgBegin), ArgBegin, ArgEnd); } //===--------------------------------------------------------------------===// // Constant structs //===--------------------------------------------------------------------===// /// GetStruct - return a constant struct given a struct type and a vector /// of elements. static Constant *GetStruct( const StructType *Ty, const std::vector<Constant*> &V) { return ConstantStruct::get(Ty, V); } /// GetStruct - return a constant struct given a context and a ve...