Closed
Bug 575396
Opened 15 years ago
Closed 15 years ago
treehydra: fix template and enum handling of dehydra_convert, add gimple_num_args, banish USING_DECLs
Categories
(Developer Infrastructure :: Source Code Analysis, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ehren.m, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
6.03 KB,
patch
|
ehren.m
:
review+
|
Details | Diff | Splinter Review |
4.5 switched to using CONST_DECL for some (all?) enum fields (this is already handled in dehydra_types.c). The other fixes are for issues encountered when running the analysis suite. Note that the USING_DECL fix is to prevent these trees from being seen by process_tree_decl.
Attachment #454631 -
Flags: review?(tglek)
Comment 1•15 years ago
|
||
Comment on attachment 454631 [details] [diff] [review]
patch
>+// Test enum handling of dehydra_convert
>+function process_tree(fn) {
>+ let cfg = function_decl_cfg(fn);
>+ for (let bb in cfg_bb_iterator(cfg)) {
>+ for (let isn in bb_isn_iterator(bb)) {
>+ if (isn.tree_code() != GIMPLE_ASSIGN)
>+ continue;
>+ let lhs = gimple_op(isn, 0);
>+ let t = TREE_TYPE(lhs);
>+ t = dehydra_convert(t);
>+ new EnumTestCase(t).run(r);
>+ }
>+ }
>+}
There should be a cfg->isn iterator to skip these nested loops in every friggin script. If there isn't one already please add a cfg_isn_iterator
Attachment #454631 -
Flags: review?(tglek) → review+
Reporter | ||
Comment 2•15 years ago
|
||
added cfg_isn_iterator, changed test case to use it, carrying over r+.
Attachment #454631 -
Attachment is obsolete: true
Attachment #454652 -
Flags: review+
Reporter | ||
Comment 3•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Core → Firefox Build System
Updated•3 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•