Displaying 4 results from an estimated 4 matches for "storeop".
Did you mean:
storeip
2008 Sep 18
2
[LLVMdev] store addrspace qualifier
...of the
StoreSDNode to a SrcValueSDNode it asserts on:
Assertion failed: isa<X>(Val) && "cast<Ty>() argument of incompatible
type!"
This is what I'm attempting:
SDValue LangTargetLowering::LowerSTORE(SDValue Op, SelectionDAG& DAG){
const StoreSDNode* storeOp = dyn_cast<StoreSDNode>(Op.Val);
const SDValue& dstPtr = storeOp->getBasePtr();
const SrcValueSDNode* svdstVal = cast<SrcValueSDNode>(dstPtr.Val);
const Value* dstVal = svdstVal->getValue();
int addressSpace = ADDRESS_NONE;
const Type* dstType = dst...
2008 Sep 17
0
[LLVMdev] store addrspace qualifier
The address qualifier is stored in the type of %result. From that
operand, you can get the Value and then call getType. The type for
result should be a PointerType which you cast to a PointerType and
get the getAddressSpace e.g. cast<PointerType>(Ty)->getAddressSpace()
-- Mon Ping
On Sep 17, 2008, at 1:06 PM, Villmow, Micah wrote:
> How do I access the address qualifier
2008 Sep 17
2
[LLVMdev] store addrspace qualifier
How do I access the address qualifier from the store instruction.
Given the following code:
define void @test_unary_op_anegate(float %x, float addrspace(11)*
%result) nounwind {
entry:
%neg = sub float -0.000000e+000, %x ; <float>
[#uses=1]
store float %neg, float addrspace(11)* %result
ret void
}
When I attempt to generate this code, I'm
2003 Nov 21
2
[LLVMdev] Need Help With Verifier
...* ival = ConstantInt::get(Type::LongTy, 1);
LoadInst* loadop = new LoadInst( TheIndex );
bb->getInstList().push_back( loadop );
BinaryOperator* addop = BinaryOperator::create(
Instruction::Add, loadop, ival);
bb->getInstList().push_back( addop );
StoreInst* storeop = new StoreInst( addop,
TheIndex );
bb->getInstList().push_back( storeop );
}
GetElementPtrInst*
StackerCompiler::get_stack_po...