forked from OSchip/llvm-project
4532a50899
For IR generated by a compiler, this is really simple: you just take the datalayout from the beginning of the file, and apply it to all the IR later in the file. For optimization testcases that don't care about the datalayout, this is also really simple: we just use the default datalayout. The complexity here comes from the fact that some LLVM tools allow overriding the datalayout: some tools have an explicit flag for this, some tools will infer a datalayout based on the code generation target. Supporting this properly required plumbing through a bunch of new machinery: we want to allow overriding the datalayout after the datalayout is parsed from the file, but before we use any information from it. Therefore, IR/bitcode parsing now has a callback to allow tools to compute the datalayout at the appropriate time. Not sure if I covered all the LLVM tools that want to use the callback. (clang? lli? Misc IR manipulation tools like llvm-link?). But this is at least enough for all the LLVM regression tests, and IR without a datalayout is not something frontends should generate. This change had some sort of weird effects for certain CodeGen regression tests: if the datalayout is overridden with a datalayout with a different program or stack address space, we now parse IR based on the overridden datalayout, instead of the one written in the file (or the default one, if none is specified). This broke a few AVR tests, and one AMDGPU test. Outside the CodeGen tests I mentioned, the test changes are all just fixing CHECK lines and moving around datalayout lines in weird places. Differential Revision: https://reviews.llvm.org/D78403 |
||
---|---|---|
.. | ||
2002-05-15-AgressiveSubMove.ll | ||
2002-05-15-MissedTree.ll | ||
2002-05-15-SubReassociate.ll | ||
2002-07-09-DominanceProblem.ll | ||
2003-08-12-InfiniteLoop.ll | ||
2005-09-01-ArrayOutOfBounds.ll | ||
2006-04-27-ReassociateVector.ll | ||
2011-01-26-UseAfterFree.ll | ||
2012-05-08-UndefLeak.ll | ||
2012-06-08-InfiniteLoop.ll | ||
2019-08-22-FNegAssert.ll | ||
absorption.ll | ||
add_across_block_crash.ll | ||
basictest.ll | ||
binop-identity.ll | ||
canonicalize-neg-const.ll | ||
commute.ll | ||
crash.ll | ||
crash2.ll | ||
cse-pairs.ll | ||
deadcode.ll | ||
erase_inst_made_change.ll | ||
factorize-again.ll | ||
fast-AgressiveSubMove.ll | ||
fast-ArrayOutOfBounds.ll | ||
fast-MissedTree.ll | ||
fast-ReassociateVector.ll | ||
fast-SubReassociate.ll | ||
fast-basictest.ll | ||
fast-fp-commute.ll | ||
fast-mightymul.ll | ||
fast-multistep.ll | ||
fp-commute.ll | ||
fp-expr.ll | ||
infloop-deadphi.ll | ||
inverses.ll | ||
keep-debug-loc.ll | ||
long-chains.ll | ||
looptest.ll | ||
matching-binops.ll | ||
mightymul.ll | ||
min_int.ll | ||
mixed-fast-nonfast-fp.ll | ||
mulfactor.ll | ||
multistep.ll | ||
negation.ll | ||
negation1.ll | ||
no-op.ll | ||
optional-flags.ll | ||
otherops.ll | ||
pointer-collision-non-determinism.ll | ||
pr12245.ll | ||
pr21205.ll | ||
pr28367.ll | ||
pr42349.ll | ||
propagate-flags.ll | ||
reassoc-intermediate-fnegs.ll | ||
reassociate-catchswitch.ll | ||
reassociate-deadinst.ll | ||
reassociate-landingpad.ll | ||
reassociate_dbgvalue_discard.ll | ||
reassociate_salvages_debug_info.ll | ||
repeats.ll | ||
secondary.ll | ||
shift-factor.ll | ||
shifttest.ll | ||
subtest.ll | ||
undef_intrinsics_when_deleting_instructions.ll | ||
vaarg_movable.ll | ||
wrap-flags.ll | ||
xor_reassoc.ll |