Difference: CS255Spring08Discussions (31 vs. 32)

Revision 322008-02-24 - StanPark

Line: 1 to 1
META TOPICPARENT name="CS255Spring08"

CS255/455 Spring 2008 Questions and Answers

This page is intended for anyone to post questions and everyone to answer them. Please insert questions at the beginning and separate each question with a horizontal rule separator. For other formatting instructions read the answer to this question.

Q: Is there a way to get a string representation of a tree, particularly a tree that represents a single variable? get_name() does not work for variables like D.####

 Q: Are there functions to change operands of a tree or do we have to build EXPR trees ourselves with some other function?

A: There are some macroes named "build0", "build1", .... in tree.h which can be used to build gimple trees. For changing operands, there are 3 steps: build new operands, remove old operands and place new operands.

This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding URCS? Send feedback