Skip to content

Add AdditionalMember to set LangOptions for WorkGroupSize #3761

Open
@smanna12

Description

@smanna12

I sort of wonder whether we'd be doing a good thing by having an AdditionalMember like:

const Expr *getWorkGroupSize(const LangOptions &LO) const {
  return LO.OpenCL ? getXDim() : getZDim();
}

Perhaps not as part of this PR though -- this may be worth thinking about for when we correct the behavior of the one, two, and three arg forms of the attribute.

Originally posted by @AaronBallman in #3728 (comment)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions