[llvm-commits] [llvm] r122663 - in /llvm/trunk/lib/Target/ARM: ARMAsmPrinter.cpp ARMAsmPrinter.h ARMISelDAGToDAG.cpp ARMInstrInfo.td

Jakob Stoklund Olesen stoklund at 2pi.dk
Wed Jan 19 16:02:49 PST 2011


On Jan 19, 2011, at 3:41 PM, Jim Grosbach wrote:

> The disassembler should be able to handle encoding conflicts when the instructions have mutually exclusive subtarget feature requirements. If it can't, that's a problem that should probably be fixed.
> 
> Alternatively, it should be possible to express (I doubt it is currently) that a constraint only applies when a Requires[] evaluates true. That seems like the truely correct answer.

The predicates expect to be executed in the context of a method in the target's SelectionDAGISel subclass. It looks like all of the ARM predicates just refer to the 'Subtarget' member pointer, so it could be possible to execute them in a disassembler context too.

/jakob





More information about the llvm-commits mailing list