[llvm-commits] [llvm] r118409 - /llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp

Dan Gohman gohman at apple.com
Mon Nov 8 11:33:06 PST 2010


On Nov 8, 2010, at 8:20 AM, Duncan Sands wrote:

> Hi Dan,
> 
>> Teach BasicAliasAnalysis::getModRefBehavior(const Function *F)
>> to analyze intrinsic functions.
> 
> 
>> +  // For intrinsics, we can check the table.
>> +  if (unsigned iid = F->getIntrinsicID()) {
>> +#define GET_INTRINSIC_MODREF_BEHAVIOR
>> +#include "llvm/Intrinsics.gen"
>> +#undef GET_INTRINSIC_MODREF_BEHAVIOR
>> +  }
> 
> alias analysis exports this logic as AliasAnalysis::getIntrinsicModRefBehavior.
> Can't you just use that?


I removed that function after I updated all of its users to use
the regular getModRefBehavior interface.

Dan





More information about the llvm-commits mailing list