summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-08-14 18:36:54 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-08-14 18:36:54 +0000
commit9eaf5aa006994ae0d3af4ff695822a4c5a62703f (patch)
tree638ad611e7efc4908c6c401f39c47e23d8bce7fb /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent3afc797e42f8c745cbd4e2049c5e81c64fef5001 (diff)
downloadbcm5719-llvm-9eaf5aa006994ae0d3af4ff695822a4c5a62703f.tar.gz
bcm5719-llvm-9eaf5aa006994ae0d3af4ff695822a4c5a62703f.zip
[Tablegen][MCInstPredicate] Removed redundant template argument from class TIIPredicate, and implemented verification rules for TIIPredicates.
This patch removes redundant template argument `TargetName` from TIIPredicate. Tablegen can always infer the target name from the context. So we don't need to force users of TIIPredicate to always specify it. This allows us to better modularize the tablegen class hierarchy for the so-called "function predicates". class FunctionPredicateBase has been added; it is currently used as a building block for TIIPredicates. However, I plan to reuse that class to model other function predicate classes too (i.e. not just TIIPredicates). For example, this can be a first step towards implementing proper support for dependency breaking instructions in tablegen. This patch also adds a verification step on TIIPredicates in tablegen. We cannot have multiple TIIPredicates with the same name. Otherwise, this will cause build errors later on, when tablegen'd .inc files are included by cpp files and then compiled. Differential Revision: https://reviews.llvm.org/D50708 llvm-svn: 339706
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud