Skip to content
  • Chris Lattner's avatar
    Rename MachineInstr::getInstrDescriptor -> getDesc(), which reflects · a98c679d
    Chris Lattner authored
    that it is cheap and efficient to get.
    
    Move a variety of predicates from TargetInstrInfo into 
    TargetInstrDescriptor, which makes it much easier to query a predicate
    when you don't have TII around.  Now you can use MI->getDesc()->isBranch()
    instead of going through TII, and this is much more efficient anyway. Not
    all of the predicates have been moved over yet.
    
    Update old code that used MI->getInstrDescriptor()->Flags to use the
    new predicates in many places.
    
    llvm-svn: 45674
    a98c679d
Loading