We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d705a1 commit fe47ed6Copy full SHA for fe47ed6
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
@@ -11,6 +11,13 @@
11
/// \todo This should be generated by TableGen.
12
//===----------------------------------------------------------------------===//
13
14
+#if defined(_MSC_VER) || defined(__MINGW32__)
15
+// According to Microsoft, one must set _USE_MATH_DEFINES in order to get M_PI
16
+// from the Visual C++ cmath / math.h headers:
17
+// https://docs.microsoft.com/en-us/cpp/c-runtime-library/math-constants?view=vs-2019
18
+#define _USE_MATH_DEFINES
19
+#endif
20
+
21
#include "AMDGPU.h"
22
#include "AMDGPULegalizerInfo.h"
23
#include "AMDGPUTargetMachine.h"
0 commit comments