Displaying 5 results from an estimated 5 matches for "createconstgep1_64".
Did you mean:
createconstgep1_32
2011 Feb 01
2
[LLVMdev] Convenience methods in ConstantExpr et al
...onsistency in the various LLVM classes
with respect to convenience methods. Here's some examples:
For creating GEPS, IRBuilder has:
CreateGEP (2 overloads)
CreateInBoundsGEP (2 overloads)
CreateConstGEP1_32
CreateConstInBoundsGEP1_32
CreateConstGEP2_32
CreateConstInBoundsGEP2_32
CreateConstGEP1_64
CreateConstInBoundsGEP1_64
CreateConstGEP2_64
CreateConstInBoundsGEP2_64
CreateStructGEP
All of which are very useful. However, ConstExpression only has:
getGetElementPtr
getGetElementPtr
getInBoundsGetElementPtr
getInBoundsGetElementPtr
It would be nice if ConstantExpr's GEP...
2016 May 09
2
C++ CreateConstGEP questions
...ateConstGEP2_32 (Type *Ty, Value *Ptr, unsigned Idx0, unsigned Idx1, const Twine &Name="")
For CreateConstGEP2_64, there is only the version with no Type supplied:
Value * CreateConstGEP2_64 (Value *Ptr, uint64_t Idx0, uint64_t Idx1, const Twine &Name="")
Same for CreateConstGEP1_64 -- no Type* parameter.
Can anybody offer insight into the strange lack of symmetry here? Why does GEP2_32 require the type, but GEP1_64 and GEP2_64 doesn't allow it all, but GEP1_32 has both varieties?
Is it always safe to pass nullptr as the type?
Also, if you know your constant indices fit...
2011 Feb 02
0
[LLVMdev] Convenience methods in ConstantExpr et al
...ect to convenience methods. Here's some examples:
>
> For creating GEPS, IRBuilder has:
>
> CreateGEP (2 overloads)
> CreateInBoundsGEP (2 overloads)
> CreateConstGEP1_32
> CreateConstInBoundsGEP1_32
> CreateConstGEP2_32
> CreateConstInBoundsGEP2_32
> CreateConstGEP1_64
> CreateConstInBoundsGEP1_64
> CreateConstGEP2_64
> CreateConstInBoundsGEP2_64
> CreateStructGEP
>
> All of which are very useful. However, ConstExpression only has:
>
> getGetElementPtr
> getGetElementPtr
> getInBoundsGetElementPtr
> getInBoundsGetE...
2011 Feb 02
2
[LLVMdev] Convenience methods in ConstantExpr et al
...some examples:
>
> For creating GEPS, IRBuilder has:
>
> CreateGEP (2 overloads)
> CreateInBoundsGEP (2 overloads)
> CreateConstGEP1_32
> CreateConstInBoundsGEP1_32
> CreateConstGEP2_32
> CreateConstInBoundsGEP2_32
> CreateConstGEP1_64
> CreateConstInBoundsGEP1_64
> CreateConstGEP2_64
> CreateConstInBoundsGEP2_64
> CreateStructGEP
>
> All of which are very useful. However, ConstExpression only has:
>
> getGetElementPtr
> getGetElementPtr
> getInBou...
2011 Feb 03
0
[LLVMdev] Convenience methods in ConstantExpr et al
...For creating GEPS, IRBuilder has:
>>
>> CreateGEP (2 overloads)
>> CreateInBoundsGEP (2 overloads)
>> CreateConstGEP1_32
>> CreateConstInBoundsGEP1_32
>> CreateConstGEP2_32
>> CreateConstInBoundsGEP2_32
>> CreateConstGEP1_64
>> CreateConstInBoundsGEP1_64
>> CreateConstGEP2_64
>> CreateConstInBoundsGEP2_64
>> CreateStructGEP
>>
>> All of which are very useful. However, ConstExpression only has:
>>
>> getGetElementPtr
>> getGetEl...