================
@@ -1779,6 +1780,17 @@ bool hasValueInRangeLikeMetadata(const MDNode &MD,
int64_t Val) {
return false;
}
+AllocatedVGPRsMetadata AllocatedVGPRsMetadata::get(const AllocaInst &Alloca) {
+ const MDNode *MD = Alloca.getMetadata("amdgpu.allocated.vgprs");
+ assert(MD && MD->getNumOperands() == 2 &&
+ "expected !amdgpu.allocated.vgprs metadata with 2 operands");
----------------
arsenm wrote:
IR structural rules should be enforced by the verifier
https://github.com/llvm/llvm-project/pull/205435
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits