Add a TargetOption to enable/disable GlobalISel
authorVolkan Keles <vkeles@apple.com>
Wed, 17 Jan 2018 22:34:21 +0000 (22:34 +0000)
committerVolkan Keles <vkeles@apple.com>
Wed, 17 Jan 2018 22:34:21 +0000 (22:34 +0000)
commita79b0620a08d94a58fd48787e78cc83924632ad8
tree87ae63a1b25d6e521c7873f30434846ed2d7e57f
parent8b1986b5cb2c4282aab50794e05be412fbc421d1
Add a TargetOption to enable/disable GlobalISel

Summary:
This patch adds a new target option in order to control GlobalISel.
This will allow the users to enable/disable GlobalISel prior to the
backend by calling `TargetMachine::setGlobalISel(bool Enable)`.

No test case as there is already a test to check GlobalISel
command line options.
See: CodeGen/AArch64/GlobalISel/gisel-commandline-option.ll.

Reviewers: qcolombet, aemerson, ab, dsanders

Reviewed By: qcolombet

Subscribers: rovka, javed.absar, kristof.beyls, llvm-commits

Differential Revision: https://reviews.llvm.org/D42137

llvm-svn: 322773
llvm/include/llvm/CodeGen/TargetPassConfig.h
llvm/include/llvm/Target/TargetMachine.h
llvm/include/llvm/Target/TargetOptions.h
llvm/lib/CodeGen/TargetPassConfig.cpp
llvm/lib/Target/AArch64/AArch64TargetMachine.cpp