p4lang-p4c-nightly:zma/warn-const-fold

Last commit made on 2019-12-27
Get this branch:
git clone -b zma/warn-const-fold https://git.launchpad.net/p4lang-p4c-nightly

Branch merges

Branch information

Name:
zma/warn-const-fold
Repository:
lp:p4lang-p4c-nightly

Recent commits

8d21abe... by Zhao Ma <email address hidden>

cpplint

2b8ce31... by Zhao Ma <email address hidden>

update test outputs

5420efa... by Zhao Ma <email address hidden>

apply to all IR::Constant ctor calls

aea0238... by Zhao Ma <email address hidden>

conditionally disable a warning on constant folding

94e5578... by Chris Dodd <email address hidden>

refactoring sideEffects.cpp to fix problems (#2108)

- Fix sideEffect to not pull table hit/miss out of if -- will just be converted into a (redundant) table and temp by actionSynthesis, so is a complete waste
- don't introduce unnecessary block statements.
- don't try to create Type_Dontcare temps
- changes in expected outputs
- bmv2 support "if (!table.apply().hit)"
- setHeaders create a BlockStatement when needed
- Merge DismantleExpression into DoSimplifyExpressions -- all one Transform pass so we can use the context.
- remove unnecessary clones
- avoid extra copies for return values that are just copied again.

e41634c... by Chris Dodd <email address hidden>

Use libgc for all malloc calls, so they are scanned properly. (#2116)

- glibstdc++ uses malloc to allocate exceptions being thrown, which
  could result in them not being scanned by the garbage collector,
  leading to memory corruption.

afb501c... by Andy Fingerhut <email address hidden>

Add Python 3 ply to install steps in README (#2115)

Without this, following the existing README instructions leads to an
installation that fails all ebpf tests run by 'cd p4c/build ; make
check'. With this addition, I believe all tests pass.

7cf234d... by Chris Dodd <email address hidden>

Fix simplifyDefUse to deal with side effect in if condition (#2114)

- fixes issue seen in #2026

7d5e4be... by Chris Dodd <email address hidden>

Allow extern methods to be marked @noSideEffects (#2112)

- allows transformations/optimizations to have more knowledge of
  architecture-specific externs so as to better optimize things.

d381f26... by Jed Liu <email address hidden>

Ignore warnings if we've already emitted errors (#2111)

* Ignore warnings if we've already emitted errors

This avoids burying errors in a pile of warnings by ignoring all
warnings after the first error.

* Update expected output.