[openmp][openacc][NFC] Simplify access and validation of DirectiveBase information
authorValentin Clement <clementval@gmail.com>
Tue, 3 Nov 2020 16:12:14 +0000 (11:12 -0500)
committerclementval <clementval@gmail.com>
Tue, 3 Nov 2020 16:13:06 +0000 (11:13 -0500)
commit6c337945c8954bc7aeb265ea5c70e455a951bd8a
tree2964d96f9546daa3743c58da42ff5edd4d96255e
parent3c050a597c599cea035537b8875774dcc48922c3
[openmp][openacc][NFC] Simplify access and validation of DirectiveBase information

This patch adds some helper in the DirectiveLanguage wrapper to initialize it from
the RecordKeeper and validate the records. This simplify arguments in lots of function
since only the DirectiveLanguge is passed.

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D90358
llvm/include/llvm/TableGen/DirectiveEmitter.h
llvm/utils/TableGen/DirectiveEmitter.cpp