Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding IntegrationFunction class. This represents an under-constructi… #167

Merged
merged 2 commits into from Oct 30, 2020

Conversation

jbaileyhandle
Copy link
Collaborator

…on merged function and includes bookkeeping to track which original-function nodes map to which integration-function nodes. Currently for an IntegrationFunction, inputs are tuples where each tuple corresponds to the inputs of one of the source functions.

…on merged function and includes bookkeeping to track which original-function nodes map to which integration-function nodes. Currently for an IntegrationFunction, inputs are tuples where each tuple corresponds to the inputs of one of the source functions.
Copy link
Collaborator

@meheff meheff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some minor suggestions.

xls/contrib/integrator/ir_integrator.h Outdated Show resolved Hide resolved
xls/contrib/integrator/ir_integrator.cc Outdated Show resolved Hide resolved
xls/contrib/integrator/ir_integrator.cc Outdated Show resolved Hide resolved
xls/contrib/integrator/ir_integrator.cc Outdated Show resolved Hide resolved
xls/contrib/integrator/ir_integrator.cc Outdated Show resolved Hide resolved
xls/contrib/integrator/ir_integrator.cc Outdated Show resolved Hide resolved
xls/contrib/integrator/ir_integrator.h Outdated Show resolved Hide resolved
xls/contrib/integrator/ir_integrator.cc Show resolved Hide resolved
xls/contrib/integrator/ir_integrator_test.cc Outdated Show resolved Hide resolved
xls/contrib/integrator/ir_integrator.cc Outdated Show resolved Hide resolved
…on merged function and includes bookkeeping to track which original-function nodes map to which integration-function nodes. Currently for an IntegrationFunction, inputs are tuples where each tuple corresponds to the inputs of one of the source functions.
Copy link
Collaborator

@meheff meheff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

std::move(IntegrationFunction::MakeIntegrationFunctionWithParamTuples(
p.get(), {func_a, func_b})));

auto GetTupleIndexWithNumBits = [&](long int num_bits) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JFYI, our linter complains that long int is ideally written as int64 so changed on merge.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good.

@jbaileyhandle
Copy link
Collaborator Author

Can one of the folks with merge-button-pressing authority please press the merge button?

@copybara-service copybara-service bot merged commit 4c08f75 into main Oct 30, 2020
@copybara-service copybara-service bot deleted the jbaileyhandle_integration_function_class branch October 30, 2020 23:15
@cdleary
Copy link
Collaborator

cdleary commented Nov 1, 2020

JFYI @jbaileyhandle re: process we generally can't use the merge button because we're using downstream source control as the "source of truth", so the Copybara bot tries to automerge it downstream (behind a manual step or two) and if there are any issues (like downstream linter or what have you) they get manually resolved by the "build czar" for the week (on a rotation). Once it's committed downstream it pushes back out and closes the PR as merged.

@jbaileyhandle
Copy link
Collaborator Author

@cdleary Interesting, thanks for letting me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants