Lawrence, Peter via llvm-dev
2016-Jun-09 22:39 UTC
[llvm-dev] type-inference in tblgen for instrinfo
If there is a design document describing the codegen backend to tblgen, and the type-inference system it uses, I would appreciate a pointer to it. all I can find online, like "TableGen BackEnds" and "Writing an LLVM Backend", don't go into these details, but I seem to need a deeper understanding, For example when I add "i32:" to an internal node of pattern tree, for example "i32:shl" in [(set i32:$dst (i32:shl i32:rs1, i32:rs2))] Then I get the error "expected variable name in dag operator", and a source cursor pointing to the "shl" I am able to jump to all kinds of conclusions about the nature of this "error", but don't have any hard facts to go by. --Peter. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160609/9be24812/attachment-0001.html>
Hal Finkel via llvm-dev
2016-Jun-09 22:41 UTC
[llvm-dev] type-inference in tblgen for instrinfo
----- Original Message -----> From: "Peter via llvm-dev Lawrence" <llvm-dev at lists.llvm.org> > To: llvm-dev at lists.llvm.org > Sent: Thursday, June 9, 2016 5:39:42 PM > Subject: [llvm-dev] type-inference in tblgen for instrinfo> If there is a design document describing the codegen backend to > tblgen, and the type-inference system it uses, I would appreciate a > pointer to it.> all I can find online, like “TableGen BackEnds” and “Writing an LLVM > Backend”, don’t go into these details, but I seem to need a deeper > understanding,> For example when I add “i32:” to an internal node of pattern tree, > for example “i32:shl” in > [(set i32:$dst (i32:shl i32:rs1, i32:rs2))] > Then I get the error “expected variable name in dag operator”, and a > source cursor pointing to the “shl”> I am able to jump to all kinds of conclusions about the nature of > this “error”, but don’t have any hard facts to go by.Why are you trying to add a type there? -Hal> --Peter. > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev-- Hal Finkel Assistant Computational Scientist Leadership Computing Facility Argonne National Laboratory -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160609/987a2b01/attachment.html>