mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Add isRegSequence property.
This patch adds a new property: isRegSequence and the related target hooks: TargetIntrInfo::getRegSequenceInputs and TargetInstrInfo::getRegSequenceLikeInputs to specify that a target specific instruction is a (kind of) REG_SEQUENCE. <rdar://problem/12702965> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215394 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -510,6 +510,20 @@ public:
|
||||
return hasProperty(MCID::FoldableAsLoad, Type);
|
||||
}
|
||||
|
||||
/// \brief Return true if this instruction behaves
|
||||
/// the same way as the generic REG_SEQUENCE instructions.
|
||||
/// E.g., on ARM,
|
||||
/// dX VMOVDRR rY, rZ
|
||||
/// is equivalent to
|
||||
/// dX = REG_SEQUENCE rY, ssub_0, rZ, ssub_1.
|
||||
///
|
||||
/// Note that for the optimizers to be able to take advantage of
|
||||
/// this property, TargetInstrInfo::getRegSequenceLikeInputs has to be
|
||||
/// override accordingly.
|
||||
bool isRegSequenceLike(QueryType Type = IgnoreBundle) const {
|
||||
return hasProperty(MCID::RegSequence, Type);
|
||||
}
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
// Side Effect Analysis
|
||||
//===--------------------------------------------------------------------===//
|
||||
|
Reference in New Issue
Block a user