Displaying 3 results from an estimated 3 matches for "dstval".
Did you mean:
stval
2008 Sep 18
2
[LLVMdev] store addrspace qualifier
...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 = dstVal->getType();
if (isa<PointerType>(dstType)) {
const PointerType* ptrType = cast<PointerType>(dstType);...
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