[llvm] [DXIL] Add constraint specification and backend implementation of DXIL Ops (PR #97593)
Damyan Pepper via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 12 14:12:55 PDT 2024
================
@@ -113,9 +99,16 @@ DXILOperationDesc::DXILOperationDesc(const Record *R) {
OpCode = R->getValueAsInt("OpCode");
Doc = R->getValueAsString("Doc");
-
- auto TypeRecs = R->getValueAsListOfDefs("OpTypes");
- unsigned TypeRecsSize = TypeRecs.size();
+ SmallVector<Record *> ParamTypeRecs;
+ std::vector<Record *> RetTys = R->getValueAsListOfDefs("result");
+ for (auto Ty : RetTys) {
+ ParamTypeRecs.push_back(Ty);
+ }
+ std::vector<Record *> ArgTys = R->getValueAsListOfDefs("arguments");
+ for (auto Ty : ArgTys) {
+ ParamTypeRecs.push_back(Ty);
+ }
+ unsigned ParamTypeRecsSize = ParamTypeRecs.size();
----------------
damyanp wrote:
Should this be `size_t` rather than `unsigned`?
https://github.com/llvm/llvm-project/pull/97593
More information about the llvm-commits
mailing list