nouveau: Drop BuildUtil::Location
authorM Henning <drawoc@darkrefraction.com>
Mon, 17 Jul 2023 02:01:08 +0000 (22:01 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 21 Jul 2023 02:40:36 +0000 (02:40 +0000)
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24175>

src/nouveau/codegen/nv50_ir_build_util.h

index 8f66b02..63be8d3 100644 (file)
@@ -110,31 +110,6 @@ public:
    static Instruction *split64BitOpPostRA(Function *, Instruction *,
                                           Value *zero, Value *carry);
 
-   struct Location
-   {
-      Location(unsigned array, unsigned arrayIdx, unsigned i, unsigned c)
-         : array(array), arrayIdx(arrayIdx), i(i), c(c) { }
-      Location(const Location &l)
-         : array(l.array), arrayIdx(l.arrayIdx), i(l.i), c(l.c) { }
-
-      bool operator==(const Location &l) const
-      {
-         return
-            array == l.array && arrayIdx == l.arrayIdx && i == l.i && c == l.c;
-      }
-
-      bool operator<(const Location &l) const
-      {
-         return array != l.array ? array < l.array :
-            arrayIdx != l.arrayIdx ? arrayIdx < l.arrayIdx :
-            i != l.i ? i < l.i :
-            c != l.c ? c < l.c :
-            false;
-      }
-
-      unsigned array, arrayIdx, i, c;
-   };
-
    Symbol *mkSymbol(DataFile file, int8_t fileIndex,
                     DataType ty, uint32_t baseAddress);