Displaying 6 results from an estimated 6 matches for "zextinst".
Did you mean:
sextinst
2008 Jul 01
2
[LLVMdev] vmkit on x86_64
...rrentBlock);
+ val2 = BinaryOperator::createAnd(val2, mask, "", currentBlock);
push(BinaryOperator::createLShr(val1, val2, "", currentBlock),
AssessorDesc::dInt);
break;
@@ -1017,7 +1017,7 @@
case LUSHR : {
Value* val2 = new ZExtInst(pop(), Type::Int64Ty, "", currentBlock);
Value* mask = ConstantInt::get(Type::Int64Ty, 0x3F);
- val2 = BinaryOperator::CreateAnd(val2, mask, "", currentBlock);
+ val2 = BinaryOperator::createAnd(val2, mask, "", currentBlock);
pop(); // r...
2011 Aug 19
1
[LLVMdev] LLVM: Very simple question
Hi, guys. I'm a newbie to LLVM and have a very simple question.
Which instructions should I use (in terms of IRBuilder calls) to allocate an
array of bytes in stack (alloca?), then to work with it (from a given
offset) as with integer (bitcast?). I mean something like that:
unsigned char var[8];
unsigned int offset = 3;
int val = *(int*)(&var+offset); /* read */
*(int*)(&var+offset)
2008 Jul 01
0
[LLVMdev] vmkit on x86_64
...inaryOperator::createAnd(val2, mask, "", currentBlock);
> push(BinaryOperator::createLShr(val1, val2, "", currentBlock),
> AssessorDesc::dInt);
> break;
> @@ -1017,7 +1017,7 @@
> case LUSHR : {
> Value* val2 = new ZExtInst(pop(), Type::Int64Ty, "", currentBlock);
> Value* mask = ConstantInt::get(Type::Int64Ty, 0x3F);
> - val2 = BinaryOperator::CreateAnd(val2, mask, "", currentBlock);
> + val2 = BinaryOperator::createAnd(val2, mask, "", currentBlock);
>...
2012 Jul 31
0
[LLVMdev] rotate
Oh, no. I should have been more clear. The patch was not rejected, just
lost in the daily shuffle.
I already have my employer's approval to send this upstream, so I will
prepare a patch against trunk this morning.
> I proposed a similar patch to LLVM (left circular shift) around 10/2011.
> > Parts of my patch did make it into trunk about a year after, but others
> > did not.
2012 Jul 31
4
[LLVMdev] rotate
On Monday, July 30, 2012 12:16 AM, Cameron McInally wrote:
> Hey Andy,
>
> I proposed a similar patch to LLVM (left circular shift) around 10/2011.
> Parts of my patch did make it into trunk about a year after, but others
> did not.
>
> At that time, my solution was to add a binary operator to the IRBuilder,
> since LCS fits in nicely with the other shift operators. But,
2012 Jul 31
3
[LLVMdev] rotate
...ST(33)
// Cast operators ...
// NOTE: The order matters here because CastInst::isEliminableCastPair
// NOTE: (see Instructions.cpp) encodes a table based on this ordering.
- FIRST_CAST_INST(33)
-HANDLE_CAST_INST(33, Trunc , TruncInst ) // Truncate integers
-HANDLE_CAST_INST(34, ZExt , ZExtInst ) // Zero extend integers
-HANDLE_CAST_INST(35, SExt , SExtInst ) // Sign extend integers
-HANDLE_CAST_INST(36, FPToUI , FPToUIInst ) // floating point -> UInt
-HANDLE_CAST_INST(37, FPToSI , FPToSIInst ) // floating point -> SInt
-HANDLE_CAST_INST(38, UIToFP , UIToFPInst )...