Displaying 2 results from an estimated 2 matches for "hasnomodrefinfoforcalls".
2009 Nov 06
0
[LLVMdev] Functions: sret and readnone
...)
{
if(CS.hasArgument(P))
{
if(CS.getArgument(0) == P)
return AliasAnalysis::Mod; // modify value pointed to by sret
param
else
return AliasAnalysis::NoModRef; // there aren't any other pointer
args
}
}
return AliasAnalysis::getModRefInfo(CS, P, Size);
}
bool hasNoModRefInfoForCalls() const { return false; }
};
> If you provided a body too then the GlobalsModRef analysis might be able to
> work it out.
That's not an option because I want the sample function to be resolved
as an external function by the jitter.
Thanks for your time,
Stephan
2009 Nov 06
2
[LLVMdev] Functions: sret and readnone
Hi Stephan,
> intrinsic float4 sample(int tex, float2 tc);
>
> float4 main(int tex, float2 tc)
> {
> float4 x = sample(tex, tc);
> return 0.0;
> }
without additional information it would be wrong to remove the call to
sample because it might write to a global variable.
> As you can see, the call to the sample function is still present,
> although the actual value