GlobalISel: Add helper function for getting EVT from LLT
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 31 Jul 2021 16:05:33 +0000 (12:05 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 14 Aug 2021 01:10:13 +0000 (21:10 -0400)
commitcc56152f83b41047998c1b7e0a6d8bfe8671f605
treeea73b8603d0c09b67d93172f5875b86125dc57b6
parentd63f117210d1e189857e49320c15f486e453696a
GlobalISel: Add helper function for getting EVT from LLT

This can only give an imperfect approximation, but is enough to avoid
crashing in places where we call into EVT functions starting from LLTs.
llvm/include/llvm/CodeGen/LowLevelType.h
llvm/lib/CodeGen/LowLevelType.cpp
llvm/lib/CodeGen/TargetLoweringBase.cpp