[builtins] Add option to always build int128 routines
authorShoaib Meenai <smeenai@fb.com>
Tue, 28 Feb 2023 21:13:45 +0000 (13:13 -0800)
committerShoaib Meenai <smeenai@fb.com>
Wed, 1 Mar 2023 00:38:24 +0000 (16:38 -0800)
commitc2d6cc9ac41cf83833b3d995aa1bb3b17b8204ea
treeb4dd5a93d8b04fe76fd902d71c97ba735860a3a6
parent38a64aab4a3fbaaeb383638ff654247902796556
[builtins] Add option to always build int128 routines

32-bit targets don't build these by default, but e.g. armv7 and x86 can
build them just fine, and it's useful to have the int128 routines
available for certain applications. Add a CMake option to let us include
the int128 routines for architectures which would otherwise lack them.

Reviewed By: compnerd, MaskRay, phosek

Differential Revision: https://reviews.llvm.org/D145003
compiler-rt/lib/builtins/CMakeLists.txt
compiler-rt/test/builtins/CMakeLists.txt