mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Add a sanity-check to tablegen to catch the case where isSimpleLoad
is set but mayLoad is not set. Fix all the problems this turned up. Change code to not use isSimpleLoad instead of mayLoad unless it really wants isSimpleLoad. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60459 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1759,6 +1759,15 @@ static void InferFromPattern(const CodeGenInstruction &Inst,
|
||||
MayLoad = true;
|
||||
}
|
||||
|
||||
// Sanity-check the isSimpleLoad flag.
|
||||
if (Inst.isSimpleLoad) {
|
||||
if (!MayLoad)
|
||||
fprintf(stderr,
|
||||
"Warning: mayLoad flag not set or inferred for instruction '%s'"
|
||||
" which has isSimpleLoad set.\n",
|
||||
Inst.TheDef->getName().c_str());
|
||||
}
|
||||
|
||||
if (Inst.neverHasSideEffects) {
|
||||
if (HadPattern)
|
||||
fprintf(stderr, "Warning: neverHasSideEffects set on instruction '%s' "
|
||||
|
||||
Reference in New Issue
Block a user