diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-08-23 19:34:41 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-08-23 19:34:41 +0000 |
commit | f104bf65b9d748618d23caa37b2407fe9c2b174c (patch) | |
tree | 1437d55df807cae294432f67bcbade24081c793e /include | |
parent | 55f1ef001073e89ae0d4e392f4135155d99e637c (diff) | |
download | external_llvm-f104bf65b9d748618d23caa37b2407fe9c2b174c.zip external_llvm-f104bf65b9d748618d23caa37b2407fe9c2b174c.tar.gz external_llvm-f104bf65b9d748618d23caa37b2407fe9c2b174c.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/Target.td | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/llvm/Target/Target.td b/include/llvm/Target/Target.td index c406bca..1f86607 100644 --- a/include/llvm/Target/Target.td +++ b/include/llvm/Target/Target.td @@ -631,6 +631,17 @@ class InstrInfo { // Sparc manual specifies its instructions in the format [31..0] (big), while // PowerPC specifies them using the format [0..31] (little). bit isLittleEndianEncoding = 0; + + // The instruction properties mayLoad, mayStore, and hasSideEffects are unset + // by default, and TableGen will infer their value from the instruction + // pattern when possible. + // + // Normally, TableGen will issue an error it it can't infer the value of a + // property that hasn't been set explicitly. When guessInstructionProperties + // is set, it will guess a safe value instead. + // + // This option is a temporary migration help. It will go away. + bit guessInstructionProperties = 1; } // Standard Pseudo Instructions. |