There are many tests that specify a target triple/CPU flags but no
DataLayout which can lead to IR being generated that has unusual
behaviour. This commit attempts to use the default DataLayout based
on the relevant flags if there is no explicit override on the command
line or in the IR file.
One thing that is not currently possible to differentiate from a missing
datalayout target datalayout = "" in the IR file since the current
APIs don't allow detecting this case. If it is considered useful to
support this case (instead of just using something basic like "e"),
I can change IR parsers to track whether they have seen such a
directive and change the callback type.