android: aco: fix undefined template 'std::__1::array' build errors
authorMauro Rossi <issor.oruam@gmail.com>
Sat, 21 Sep 2019 15:38:52 +0000 (17:38 +0200)
committerMauro Rossi <issor.oruam@gmail.com>
Sat, 28 Sep 2019 13:56:23 +0000 (15:56 +0200)
Fixes a few building errors similar to the following:

In file included from external/mesa/src/amd/compiler/aco_instruction_selection.cpp:26:
In file included from external/libcxx/include/algorithm:639:
external/libcxx/include/utility:321:9:
error: implicit instantiation of undefined template 'std::__1::array<aco::Temp, 4>'
    _T2 second;
        ^

Fixes: 93c8ebf ("aco: Initial commit of independent AMD compiler")
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
src/amd/compiler/aco_instruction_selection.cpp
src/amd/compiler/aco_instruction_selection_setup.cpp
src/amd/compiler/aco_print_asm.cpp
src/amd/compiler/aco_register_allocation.cpp
src/amd/compiler/aco_validate.cpp

index 7b5dc7f742678160e2d69a77187d154a80d0ccbc..b08a4008330fcbd20477533e6d1ba84effac67f9 100644 (file)
@@ -24,6 +24,7 @@
  */
 
 #include <algorithm>
+#include <array>
 #include <map>
 
 #include "aco_ir.h"
index 3a276035ba547f548c3effbd8b08bdfa0ae1c0c5..a1b2e4a7e578c336ab26f0a87d783ef3343129ea 100644 (file)
@@ -22,6 +22,7 @@
  *
  */
 
+#include <array>
 #include <unordered_map>
 #include "aco_ir.h"
 #include "nir.h"
index 31079aa1c4a6f1eb578426c2d4ddcec387af36dc..d3f4c3cb40d4c02bb91721a5504c22c4a921ca35 100644 (file)
@@ -1,4 +1,4 @@
-
+#include <array>
 #include <iomanip>
 #include "aco_ir.h"
 #include "llvm-c/Disassembler.h"
index d55f1febc653011e8c5a7220a91fa7e82aa57993..47ea932f1157aec0559e801867b401ef08e8a23b 100644 (file)
@@ -27,6 +27,7 @@
  */
 
 #include <algorithm>
+#include <array>
 #include <map>
 #include <unordered_map>
 #include <functional>
index 0988d66df3ab53401119ab75fec2ca3c761044e0..9919d0a585dd4db92f5bcd76ba2a4ff233e5db4c 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "aco_ir.h"
 
+#include <array>
 #include <map>
 
 namespace aco {