[compiler-rt] Move up undefined macro checks
authorAlex Brachet <abrachet@google.com>
Mon, 9 Jan 2023 15:54:11 +0000 (15:54 +0000)
committerAlex Brachet <abrachet@google.com>
Mon, 9 Jan 2023 15:54:11 +0000 (15:54 +0000)
commit70ab8e8ad99e41bf242804461a72b178f8a72261
treea0777aafb23b061829a7c6a182053a1c8d46e2a7
parenta35a8f4b19a2b7c3f66ffcbdb863448ff87053e7
[compiler-rt] Move up undefined macro checks

Previously HWCAP_ATOMIC and others were being used before checking if
they were defined. This moves up all the ifndef checks to define these
macros if they are not yet defined.

Differential Revision: https://reviews.llvm.org/D141285
compiler-rt/lib/builtins/cpu_model.c