search for: findbaseoffset

Displaying 2 results from an estimated 2 matches for "findbaseoffset".

2006 Dec 19
3
[LLVMdev] alias-aware scheduling
...fo &funcinfo) - : TLI(tli), DAG(dag), TD(DAG.getTarget().getTargetData()), + : TLI(tli), DAG(dag), AA(aa), TD(DAG.getTarget().getTargetData()), JT(0,0,0,0), FuncInfo(funcinfo) { } @@ -450,6 +461,139 @@ return Root; } + /* FIXME: copied from DAGCombiner.cpp */ + /// FindBaseOffset - Return true if base is known not to alias with anything + /// but itself. Provides base object and offset as results. + bool FindBaseOffset(SDOperand Ptr, SDOperand &Base, int64_t &Offset) { + // Assume it is a primitive operation. + Base = Ptr; Offset = 0; + + // If it's...
2007 Jul 24
1
[LLVMdev] alias information on machine instructions
Dan Gohman wrote: > I tried out your patch on x86 and it didn't appear to need any special changes. it might be needed to look at the addressing modes of a load/store to get the right offset. but i think it should work, if the lowering does not rewrite loads/stores into custom DAG nodes. > For the [??], it looks like the IsFrameIndex isn't getting set for the first > instruction