Displaying 6 results from an estimated 6 matches for "createconstgep1_32".
2016 May 09
2
C++ CreateConstGEP questions
There are two C++ signatures for CreateConstGEP1_32:
Value * CreateConstGEP1_32 (Value *Ptr, unsigned Idx0, const Twine &Name="")
Value * CreateConstGEP1_32 (Type *Ty, Value *Ptr, unsigned Idx0, const Twine &Name="")
I'm assuming that this means that the caller can supply the expected type, and get error che...
2011 Feb 01
2
[LLVMdev] Convenience methods in ConstantExpr et al
I notice that there's a lot of inconsistency 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
getGetElementP...
2011 Feb 02
0
[LLVMdev] Convenience methods in ConstantExpr et al
...t gmail.com> wrote:
> I notice that there's a lot of inconsistency 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, ConstExpressi...
2011 Feb 02
2
[LLVMdev] Convenience methods in ConstantExpr et al
...; I notice that there's a lot of inconsistency 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 w...
2012 Feb 22
1
[LLVMdev] Size of structs & arrays
Eli Friedman-2 wrote:
>
>
> Try llvm::Constant::getNullValue().
>
>
I'm trying this:
llvm::Constant* one =
llvm::Constant::getNullValue(llvm::IntegerType::get(mod->getContext(), 64));
llvm::ConstantInt* two = llvm::ConstantInt::get(mod->getContext(),
llvm::APInt(32, llvm::StringRef("1"), 10));
std::vector<llvm::Value*> indices;
2011 Feb 03
0
[LLVMdev] Convenience methods in ConstantExpr et al
...re's a lot of inconsistency 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
>> CreateStructGE...