mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
Add CodeGenTarget::guessInstructionProperties.
Currently, TableGen just guesses instruction properties when it can't infer them form patterns. This adds a guessInstructionProperties flag to the instruction set definition that will be used to disable guessing. The flag is intended as a migration aid. It will be removed again when no more targets need their properties guessed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162460 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -334,6 +334,15 @@ bool CodeGenTarget::isLittleEndianEncoding() const {
|
||||
return getInstructionSet()->getValueAsBit("isLittleEndianEncoding");
|
||||
}
|
||||
|
||||
/// guessInstructionProperties - Return true if it's OK to guess instruction
|
||||
/// properties instead of raising an error.
|
||||
///
|
||||
/// This is configurable as a temporary migration aid. It will eventually be
|
||||
/// permanently false.
|
||||
bool CodeGenTarget::guessInstructionProperties() const {
|
||||
return getInstructionSet()->getValueAsBit("guessInstructionProperties");
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// ComplexPattern implementation
|
||||
//
|
||||
|
Reference in New Issue
Block a user