Displaying 8 results from an estimated 8 matches for "hunh".
Did you mean:
hung
2011 Jan 24
0
[LLVMdev] How to change the type of an Instruction?
...trying
> create a new Instruction thus:
>
> %3 = add nsw i32 %1, %2 ; <i16> [#uses=2] //Old Instruction
>
> Value* Op0 = I->getOperand(0);
> Value* Op1 = I->getOperand(1);
> Value* V0 = new Value(Type::getInt16Ty(Op0->getContext()),
> Op0->getValueID());
Hunh, Value's constructor is protected.
In any event, Value is pure base. Constructing one this way will never
get you what you want. If the ValueID indicates an Instruction, go
through Instruction to create one.
> Value* V1 = new Value(Type::getInt16Ty(Op1->getContext()),
> Op1->get...
2011 Jan 24
3
[LLVMdev] How to change the type of an Instruction?
...t;>
>> %3 = add nsw i32 %1, %2 ; <i16> [#uses=2] //Old Instruction
>>
>> Value* Op0 = I->getOperand(0);
>> Value* Op1 = I->getOperand(1);
>> Value* V0 = new Value(Type::getInt16Ty(Op0->getContext()),
>> Op0->getValueID());
>>
>
> Hunh, Value's constructor is protected.
>
> In any event, Value is pure base. Constructing one this way will never get
> you what you want. If the ValueID indicates an Instruction, go through
> Instruction to create one.
>
>
> Value* V1 = new Value(Type::getInt16Ty(Op1->getC...
2011 Jan 24
3
[LLVMdev] How to change the type of an Instruction?
Hi,
Nick, thanks for the reply.
I still have a problem: I only need to "clone" an Instruction, changing its
type. That is, I would like to keep all characteristics of the old
Instruction and create a new one only with a different type. I am trying
create a new Instruction thus:
%3 = add nsw i32 %1, %2 ; <i16> [#uses=2] //Old Instruction
Value* Op0 = I->getOperand(0);
Value*
2006 Apr 17
0
Using variable class names breaks has_many?
...end
dog = Dog.find_first
dog.name => "Buster"
dog.class => Dog
dog.fleas => []
# store the class
animal_class = dog.class => Dog
dog = animal_class.find_first
dog.name => "Buster"
dog.class => Dog
dog.fleas => method_missing! # hunh?
# but this works again
dog = Dog.find_by_id(dog.id)
dog.fleas => []
Is there some AR magic that gets broken by using a variable class name?
Thanks!
- Isaac
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachm...
2011 Jan 24
0
[LLVMdev] How to change the type of an Instruction?
...%3 = add nsw i32 %1, %2 ; <i16> [#uses=2] //Old Instruction
>
> Value* Op0 = I->getOperand(0);
> Value* Op1 = I->getOperand(1);
> Value* V0 = new Value(Type::getInt16Ty(Op0->getContext()),
> Op0->getValueID());
>
>
> Hunh, Value's constructor is protected.
>
> In any event, Value is pure base. Constructing one this way will
> never get you what you want. If the ValueID indicates an
> Instruction, go through Instruction to create one.
>
>
> Value* V1 = new Value(Type::getI...
2011 Jan 28
1
[LLVMdev] How to change the type of an Instruction?
...%1, %2 ; <i16> [#uses=2] //Old Instruction
>>>
>>> Value* Op0 = I->getOperand(0);
>>> Value* Op1 = I->getOperand(1);
>>> Value* V0 = new Value(Type::getInt16Ty(Op0->getContext()),
>>> Op0->getValueID());
>>>
>>
>> Hunh, Value's constructor is protected.
>>
>> In any event, Value is pure base. Constructing one this way will never get
>> you what you want. If the ValueID indicates an Instruction, go through
>> Instruction to create one.
>>
>>
>> Value* V1 = new Value(T...
2010 Oct 10
8
recommended way to install source rpms?
yes, i've read the online docs and followed a link or two to find a
simple way to do this, such as:
http://sourceware.org/systemtap/wiki/SystemTapOnCentOS
so, these days, is that the canonical way to download source rpms?
now, note that i'm not arguing about whether this is a good idea. in
my circumstances, i want the ability to just "yum download" source
rpms so that i can
2002 Jan 09
3
R package-building
Hello,
I am building a package to read in a pretty common atmospheric data format
and create a SKEW-T, log p diagram (also very common for the atmospheric
community).
The problem is this: How should one address the (ASCII) data files so that
the examples find them? I have read through the "Writing R Extensions"
document and still have a problem.
There seems to be some sort of