Skip to content

Conversation

@wenleix
Copy link
Contributor

@wenleix wenleix commented Mar 9, 2021

Stack from ghstack:

Summary:
We will pass Scalar by reference in the following commit.

For a list of Scalar, ScalarList will be used as the type,
otherwise ArrayRef<const Scalar&> will be generated as the type
by default.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

Differential Revision: D26904443

Summary:
We will pass `Scalar` by reference in the following commit.

For a list of Scalar, `ScalarList` will be used as the type,
otherwise `ArrayRef<const Scalar&>` will be generated as the type
by default.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Mar 9, 2021

💊 CI failures summary and remediations

As of commit ade75c3 (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

wxie added 2 commits March 8, 2021 22:40
Summary:
We will pass `Scalar` by reference in the following commit.

For a list of Scalar, `ScalarList` will be used as the type,
otherwise `ArrayRef<const Scalar&>` will be generated as the type
by default.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

Differential Revision: [D26904443](https://our.internmc.facebook.com/intern/diff/D26904443)

[ghstack-poisoned]
Summary:
We will pass `Scalar` by reference in the following commit.

For a list of Scalar, `ScalarList` will be used as the type,
otherwise `ArrayRef<const Scalar&>` will be generated as the type
by default.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

Differential Revision: [D26904443](https://our.internmc.facebook.com/intern/diff/D26904443)

[ghstack-poisoned]
@smessmer
Copy link
Contributor

smessmer commented Mar 9, 2021

as discussed offline, let's just use ArrayRef<Scalar> directly instead of introducing ScalarList.

Copy link
Contributor

@smessmer smessmer left a comment

Choose a reason for hiding this comment

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

Summary:
We will pass `Scalar` by reference in the following commit.

For a list of Scalar, `ScalarList` will be used as the type,
otherwise `ArrayRef<const Scalar&>` will be generated as the type
by default.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

Differential Revision: [D26904443](https://our.internmc.facebook.com/intern/diff/D26904443)

[ghstack-poisoned]
@wenleix wenleix changed the title Introduce ScalarList as ArrayRef<Scalar> Use ArrayRef<Scalar> for List of Scalar in codegen Mar 9, 2021
@wenleix
Copy link
Contributor Author

wenleix commented Mar 10, 2021

Squashed into #53583 as it's now just one line change.

@wenleix wenleix closed this Mar 10, 2021
@wenleix wenleix deleted the gh/wenlei.xie@gmail.com/18/head branch March 12, 2021 18:53
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.

4 participants