Displaying 2 results from an estimated 2 matches for "mysretaliasanalysi".
Did you mean:
mysretaliasanalysis
2009 Nov 06
0
[LLVMdev] Functions: sret and readnone
...eclaration.
Which is why I am trying to supply this additional information in a
custom alias analysis pass, but it doesn't seem to work. (The
AAEvalPass stats are precisely for this custom pass.)
Could you take a look at the code, please? Am I missing something
here?
class VISIBILITY_HIDDEN MySretAliasAnalysis : public FunctionPass,
public AliasAnalysis
{
std::map<std::string, bool> _srets;
public:
static char ID;
MySretAliasAnalysis() : FunctionPass(&ID)
{
_srets["sample$int$float2"] = true;
_srets["sample$int$float3"] = true;
}
void getAnalysisUsage(llvm::Ana...
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