nv50/ir/nir: track defs and provide easy access functions
authorKarol Herbst <kherbst@redhat.com>
Tue, 12 Dec 2017 20:01:28 +0000 (21:01 +0100)
committerKarol Herbst <kherbst@redhat.com>
Sun, 17 Mar 2019 09:33:28 +0000 (10:33 +0100)
commit7481abcd0ca41e0d801f2efd4b088a23e6a56892
tree4d844813e0f1847409d2afaecca5ef0fcfbaccab
parent9298664a5f8e81af6f7cd8bc1493c6d5a6b4ddb4
nv50/ir/nir: track defs and provide easy access functions

v2: add helper function for indirects
v4: add new getIndirect overload for easier use
v5: use getSSA for ssa values
    we can just create the values for unassigned registers in getSrc
v6: always create at least 32 bit values
v8: don't require C++11 features
v9: include unordered_map on supported stdlibs
    replace '(*it).' with 'it->'

Signed-off-by: Karol Herbst <kherbst@redhat.com>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp