Require "target datalayout" to be at the beginning of an IR file.
authorEli Friedman <efriedma@quicinc.com>
Sat, 18 Apr 2020 02:33:26 +0000 (19:33 -0700)
committerEli Friedman <efriedma@quicinc.com>
Mon, 20 Apr 2020 18:55:49 +0000 (11:55 -0700)
commit9b9454af8a525f92a19cc0a568777bb7c599c4cb
tree0cbc910951110500fe417db70c57d56746380215
parente128d5389547571abe04045e14c679517d01d1f6
Require "target datalayout" to be at the beginning of an IR file.

This will allow us to use the datalayout to disambiguate other
constructs in IR, like load alignment. Split off from D78403.

Differential Revision: https://reviews.llvm.org/D78413
15 files changed:
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/AsmParser/LLParser.h
llvm/test/Analysis/DependenceAnalysis/NonCanonicalizedSubscript.ll
llvm/test/Analysis/ScalarEvolution/2012-05-29-MulAddRec.ll
llvm/test/Transforms/InstCombine/2012-09-17-ZeroSizedAlloca.ll
llvm/test/Transforms/InstCombine/getelementptr-folding.ll
llvm/test/Transforms/InstCombine/overflow-mul.ll
llvm/test/Transforms/InstCombine/wcslen-3.ll
llvm/test/Transforms/LoopIdiom/X86/popcnt.ll
llvm/test/Transforms/LoopVectorize/explicit_outer_nonuniform_inner.ll
llvm/test/Transforms/LoopVectorize/explicit_outer_uniform_diverg_branch.ll
llvm/test/Transforms/NewGVN/pr33187.ll
llvm/test/Transforms/NewGVN/refine-stores.ll
llvm/test/Transforms/SafeStack/X86/call.ll
polly/test/Isl/CodeGen/20150328-SCEVExpanderIntroducesNewIV.ll