Displaying 4 results from an estimated 4 matches for "address_none".
2008 Sep 18
2
[LLVMdev] store addrspace qualifier
...G& 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);
addressSpace = ptrType->getAddressSpace();
}
printf("Addr: %d\n", addressSpace);
SDValue Res;
.....
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
2012 Jul 16
3
[LLVMdev] RFC: LLVM incubation, or requirements for committing new backends
...ivate memory.
> + GLOBAL_ADDRESS = 1, // Address space for global memory (RAT0, VTX0).
> + CONSTANT_ADDRESS = 2, // Address space for constant memory.
> + LOCAL_ADDRESS = 3, // Address space for local memory.
> + REGION_ADDRESS = 4, // Address space for region memory.
> + ADDRESS_NONE = 5, // Address space for unknown memory.
> + PARAM_D_ADDRESS = 6, // Address space for direct addressible parameter memory (CONST0)
> + PARAM_I_ADDRESS = 7, // Address space for indirect addressible parameter memory (VTX1)
> + USER_SGPR_ADDRESS = 8, // Address space for USER_SGPR...