[TargetPassConfig] Add a target hook to know what GlobalISel should do on error.
authorQuentin Colombet <qcolombet@apple.com>
Fri, 26 Aug 2016 22:32:59 +0000 (22:32 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Fri, 26 Aug 2016 22:32:59 +0000 (22:32 +0000)
commit0de43b225fe6a4438025b5d2a1ff33a10647f082
tree92667fefd364fcdf347c85878d06888c17263bb3
parent1d0cb6f1070e2e3526bc59ad4dc824b149e580af
[TargetPassConfig] Add a target hook to know what GlobalISel should do on error.

By default, this hook tells GlobalISel to abort (report a fatal error)
when it encounters an error. The alternative will be to fall back on
SDISel.
This fall back will be removed when the bring-up of GlobalISel is over.

llvm-svn: 279879
llvm/include/llvm/CodeGen/TargetPassConfig.h
llvm/lib/CodeGen/TargetPassConfig.cpp