[GlobalISel] Legalize G_(S|U)DIV libcalls
authorDiana Picus <diana.picus@linaro.org>
Mon, 24 Apr 2017 07:22:31 +0000 (07:22 +0000)
committerDiana Picus <diana.picus@linaro.org>
Mon, 24 Apr 2017 07:22:31 +0000 (07:22 +0000)
commite97822e1b7af54c20f0185340e87168ab4e00dec
tree9f3c109239cf610943d7c022615e2aef109217c1
parent95a8aa93e231d7a6cd3ab5ef75d2b016f11dc004
[GlobalISel] Legalize G_(S|U)DIV libcalls

Treat them the same as the other binary operations that we have so far,
but on integers rather than floating point types. Extract the common
code into a helper.

This will be used in the ARM backend.

llvm-svn: 301163
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp