summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/disubrange-empty-array.ll
diff options
context:
space:
mode:
authorNicolai Haehnle <nhaehnle@gmail.com>2018-03-06 13:49:01 +0000
committerNicolai Haehnle <nhaehnle@gmail.com>2018-03-06 13:49:01 +0000
commitd4c0a5d08dfad8427873bc91828681f2a807b2d9 (patch)
tree4be34a2fcc7af55fb68d6a244511ef458651153c /llvm/test/Assembler/disubrange-empty-array.ll
parent73355bcd2a747dead865223b9858168ea3776b76 (diff)
downloadbcm5719-llvm-d4c0a5d08dfad8427873bc91828681f2a807b2d9.tar.gz
bcm5719-llvm-d4c0a5d08dfad8427873bc91828681f2a807b2d9.zip
TableGen: Delay instantiating inline anonymous records
Summary: Only instantiate anonymous records once all variable references in template arguments have been resolved. This allows patterns like the new test case, which in practice can appear in expressions like: class IntrinsicTypeProfile<list<LLVMType> ty, int shift> { list<LLVMType> types = !listconcat(ty, [llvm_any_ty, LLVMMatchType<shift>]); } class FooIntrinsic<IntrinsicTypeProfile P, ...> : Intrinsic<..., P.types, ...>; Without this change, the anonymous LLVMMatchType instantiation would never get resolved. Another consequence of this change is that anonymous inline instantiations are uniqued via the folding set of the newly introduced VarDefInit. Change-Id: I7a7041a20e297cf98c9109b28d85e64e176c932a Reviewers: arsenm, craig.topper, tra, MartinO Subscribers: wdng, llvm-commits Differential Revision: https://reviews.llvm.org/D43756 llvm-svn: 326788
Diffstat (limited to 'llvm/test/Assembler/disubrange-empty-array.ll')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud