search for: createinsertvalue

Displaying 6 results from an estimated 6 matches for "createinsertvalue".

2010 Aug 15
7
[LLVMdev] "UNREACHABLE executed!" error?
...oticed that my union seems to look like an array....is that actually a union or do I have a problem somewhere? The code I use to generate the union is: llvm::Constant* tempUnion = llvm::ConstantUnion::get(object_union_type,llvm::Constant::getNullValue(types[t])); llvm::Value* goodUnion = builder.CreateInsertValue(tempUnion,data,t,"createuniontmp"); object_union_type is union { double, i1 }, and (in this case) t is 0, and types[t] is double On Sun, Aug 15, 2010 at 4:13 PM, Eric Christopher <echristo at apple.com>wrote: > > On Aug 15, 2010, at 1:06 PM, Alec Benzer wrote: > > &g...
2020 May 07
2
Cast between struct
> On May 6, 2020, at 21:53, Krzysztof Parzyszek <kparzysz at quicinc.com> wrote: > > You can > 1. extract individual elements of {i8*, i64}, > 2. bitcast the first to some_struct*, > 3. insert them into a new struct of type {some_struct*, i64}. Thanks for the help. I’m thinking the same way. Now I’m stuck with how to create a struct; I know how to create a
2010 Aug 15
0
[LLVMdev] "UNREACHABLE executed!" error?
...ke an array....is that > actually a union or do I have a problem somewhere? The code I use to > generate the union is: > > llvm::Constant* tempUnion = > llvm::ConstantUnion::get(object_union_type,llvm::Constant::getNullValue(types[t])); > > llvm::Value* goodUnion = > builder.CreateInsertValue(tempUnion,data,t,"createuniontmp"); > > object_union_type is union { double, i1 }, and (in this case) t is 0, > and types[t] is double > > > On Sun, Aug 15, 2010 at 4:13 PM, Eric Christopher <echristo at apple.com > <mailto:echristo at apple.com>> wrote: &...
2010 Aug 15
1
[LLVMdev] "UNREACHABLE executed!" error?
...a union or do I have a problem somewhere? The code I use to >> generate the union is: >> >> llvm::Constant* tempUnion = >> >> llvm::ConstantUnion::get(object_union_type,llvm::Constant::getNullValue(types[t])); >> >> llvm::Value* goodUnion = >> builder.CreateInsertValue(tempUnion,data,t,"createuniontmp"); >> >> object_union_type is union { double, i1 }, and (in this case) t is 0, >> and types[t] is double >> >> >> On Sun, Aug 15, 2010 at 4:13 PM, Eric Christopher <echristo at apple.com >> <mailto:echristo a...
2010 Aug 15
2
[LLVMdev] "UNREACHABLE executed!" error?
What does this error mean? I'm getting it from an ExecutionEngine::runFunction() call. The function I'm passing it was run through verifyFunction() right before the runFunction() call. I can't seem to find anything that tells me what causes this, only specific (but seemingly unrelated to my problem) cases of it happening. -------------- next part -------------- An HTML attachment was
2010 Aug 15
0
[LLVMdev] "UNREACHABLE executed!" error?
On Aug 15, 2010, at 1:06 PM, Alec Benzer wrote: > What does this error mean? I'm getting it from an ExecutionEngine::runFunction() call. The function I'm passing it was run through verifyFunction() right before the runFunction() call. I can't seem to find anything that tells me what causes this, only specific (but seemingly unrelated to my problem) cases of it happening. Which