Skip to content

[SYCL][FPGA][NFC] Change the identifier names #7596

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

Merged
merged 2 commits into from
Dec 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
183 changes: 95 additions & 88 deletions clang/include/clang/Basic/Attr.td

Large diffs are not rendered by default.

46 changes: 23 additions & 23 deletions clang/include/clang/Basic/AttrDocs.td
Original file line number Diff line number Diff line change
Expand Up @@ -2331,7 +2331,7 @@ as ``-mlong-calls`` and ``-mno-long-calls``.
}];
}

def IntelFPGADoublePumpAttrDocs : Documentation {
def SYCLIntelDoublePumpAttrDocs : Documentation {
let Category = DocCatVariable;
let Heading = "intel::doublepump";
let Content = [{
Expand All @@ -2352,7 +2352,7 @@ that is clocked at twice the rate of its accessors.
}];
}

def IntelFPGASinglePumpAttrDocs : Documentation {
def SYCLIntelSinglePumpAttrDocs : Documentation {
let Category = DocCatVariable;
let Heading = "intel::singlepump";
let Content = [{
Expand All @@ -2373,7 +2373,7 @@ that is clocked at the same rate as its accessors.
}];
}

def IntelFPGAMemoryAttrDocs : Documentation {
def SYCLIntelMemoryAttrDocs : Documentation {
let Category = DocCatVariable;
let Heading = "intel::fpga_memory";
let Content = [{
Expand All @@ -2397,7 +2397,7 @@ it indicates what type of memory to use.
}];
}

def IntelFPGARegisterAttrDocs : Documentation {
def SYCLIntelRegisterAttrDocs : Documentation {
let Category = DocCatVariable;
let Heading = "intel::fpga_register";
let Content = [{
Expand All @@ -2418,7 +2418,7 @@ if possible.
}];
}

def IntelFPGABankWidthAttrDocs : Documentation {
def SYCLIntelBankWidthAttrDocs : Documentation {
let Category = DocCatVariable;
let Heading = "intel::bankwidth";
let Content = [{
Expand All @@ -2440,7 +2440,7 @@ with banks that are N bytes wide.
}];
}

def IntelFPGANumBanksAttrDocs : Documentation {
def SYCLIntelNumBanksAttrDocs : Documentation {
let Category = DocCatVariable;
let Heading = "intel::numbanks";
let Content = [{
Expand All @@ -2462,7 +2462,7 @@ with N banks.
}];
}

def IntelFPGAPrivateCopiesAttrDocs : Documentation {
def SYCLIntelPrivateCopiesAttrDocs : Documentation {
let Category = DocCatVariable;
let Heading = "intel::private_copies";
let Content = [{
Expand All @@ -2485,7 +2485,7 @@ threads or loop iterations.
}];
}

def IntelFPGAMergeAttrDocs : Documentation {
def SYCLIntelMergeAttrDocs : Documentation {
let Category = DocCatVariable;
let Heading = "intel::merge";
let Content = [{
Expand All @@ -2510,7 +2510,7 @@ depth-wise or width-wise manner.
}];
}

def IntelFPGAMaxReplicatesAttrDocs : Documentation {
def SYCLIntelMaxReplicatesAttrDocs : Documentation {
let Category = DocCatVariable;
let Heading = "intel::max_replicates";
let Content = [{
Expand All @@ -2533,7 +2533,7 @@ simultaneous accesses from different load/store sites in the program.
}];
}

def IntelFPGASimpleDualPortAttrDocs : Documentation {
def SYCLIntelSimpleDualPortAttrDocs : Documentation {
let Category = DocCatVariable;
let Heading = "intel::simple_dual_port";
let Content = [{
Expand All @@ -2555,7 +2555,7 @@ loads).
}];
}

def IntelFPGABankBitsDocs : Documentation {
def SYCLIntelBankBitsDocs : Documentation {
let Category = DocCatVariable;
let Heading = "intel::bank_bits";
let Content = [{
Expand Down Expand Up @@ -2583,7 +2583,7 @@ pointer address bits to bank on.
}];
}

def IntelFPGAForcePow2DepthAttrDocs : Documentation {
def SYCLIntelForcePow2DepthAttrDocs : Documentation {
let Category = DocCatVariable;
let Heading = "intel::force_pow2_depth";
let Content = [{
Expand Down Expand Up @@ -3144,7 +3144,7 @@ sycl_detail namespace.
}];
}

def SYCLFPGAPipeDocs : Documentation {
def SYCLIntelPipeDocs : Documentation {
let Category = DocCatStmt;
let Heading = "pipe (read_only, write_only)";
let Content = [{
Expand All @@ -3168,7 +3168,7 @@ with which a pipe interfaces. The id argument is the name of the I/O interface.
}];
}

def SYCLIntelFPGAIVDepAttrDocs : Documentation {
def SYCLIntelIVDepAttrDocs : Documentation {
let Category = DocCatVariable;
let Heading = "intel::ivdep";
let Content = [{
Expand Down Expand Up @@ -3209,7 +3209,7 @@ or 1 is used.
}];
}

def SYCLIntelFPGAInitiationIntervalAttrDocs : Documentation {
def SYCLIntelInitiationIntervalAttrDocs : Documentation {
let Category = DocCatVariable;
let Heading = "intel::initiation_interval";
let Content = [{
Expand Down Expand Up @@ -3242,7 +3242,7 @@ The ``[[intel::ii]]`` attribute spelling is a deprecated synonym for
}];
}

def SYCLIntelFPGAMaxConcurrencyAttrDocs : Documentation {
def SYCLIntelMaxConcurrencyAttrDocs : Documentation {
let Category = DocCatVariable;
let Heading = "intel::max_concurrency";
let Content = [{
Expand Down Expand Up @@ -3270,7 +3270,7 @@ same loop or function, or in conjunction with ``disable_loop_pipelining``.
}];
}

def SYCLIntelFPGALoopCoalesceAttrDocs : Documentation {
def SYCLIntelLoopCoalesceAttrDocs : Documentation {
let Category = DocCatVariable;
let Heading = "intel::loop_coalesce";
let Content = [{
Expand Down Expand Up @@ -3309,7 +3309,7 @@ of the nested loop levels should be coalesced.
}];
}

def SYCLIntelFPGADisableLoopPipeliningAttrDocs : Documentation {
def SYCLIntelDisableLoopPipeliningAttrDocs : Documentation {
let Category = DocCatVariable;
let Heading = "intel::disable_loop_pipelining";
let Content = [{
Expand All @@ -3332,7 +3332,7 @@ function, or in conjunction with ``max_interleaving``,
}];
}

def SYCLIntelFPGALoopCountAttrDocs : Documentation {
def SYCLIntelLoopCountAttrDocs : Documentation {
let Category = DocCatVariable;
let Heading = "intel::loop_count_min, intel::loop_count_max, intel::loop_count_avg, intel::loop_count";
let Content = [{
Expand Down Expand Up @@ -3376,7 +3376,7 @@ using PGO.
}];
}

def SYCLIntelFPGAMaxInterleavingAttrDocs : Documentation {
def SYCLIntelMaxInterleavingAttrDocs : Documentation {
let Category = DocCatVariable;
let Heading = "intel::max_interleaving";
let Content = [{
Expand All @@ -3402,7 +3402,7 @@ used on the same loop in conjunction with disable_loop_pipelining.
}];
}

def SYCLIntelFPGASpeculatedIterationsAttrDocs : Documentation {
def SYCLIntelSpeculatedIterationsAttrDocs : Documentation {
let Category = DocCatVariable;
let Heading = "intel::speculated_iterations";
let Content = [{
Expand All @@ -3427,7 +3427,7 @@ used on the same loop in conjunction with disable_loop_pipelining.
}];
}

def SYCLIntelFPGANofusionAttrDocs : Documentation {
def SYCLIntelNofusionAttrDocs : Documentation {
let Category = DocCatVariable;
let Heading = "intel::nofusion";
let Content = [{
Expand All @@ -3451,7 +3451,7 @@ loop should not be fused with any adjacent loop.
}];
}

def SYCLIntelFPGAMaxReinvocationDelayAttrDocs : Documentation {
def SYCLIntelMaxReinvocationDelayAttrDocs : Documentation {
let Category = DocCatVariable;
let Heading = "intel::max_reinvocation_delay";
let Content = [{
Expand Down
92 changes: 46 additions & 46 deletions clang/include/clang/Sema/Sema.h
Original file line number Diff line number Diff line change
Expand Up @@ -2277,31 +2277,31 @@ class Sema final {
/// Same as above, but constructs the AddressSpace index if not provided.
QualType BuildAddressSpaceAttr(QualType &T, Expr *AddrSpace,
SourceLocation AttrLoc);
SYCLIntelFPGAIVDepAttr *
BuildSYCLIntelFPGAIVDepAttr(const AttributeCommonInfo &CI, Expr *Expr1,
Expr *Expr2);
SYCLIntelIVDepAttr *
BuildSYCLIntelIVDepAttr(const AttributeCommonInfo &CI, Expr *Expr1,
Expr *Expr2);
LoopUnrollHintAttr *BuildLoopUnrollHintAttr(const AttributeCommonInfo &A,
Expr *E);
OpenCLUnrollHintAttr *
BuildOpenCLLoopUnrollHintAttr(const AttributeCommonInfo &A, Expr *E);

SYCLIntelFPGALoopCountAttr *
BuildSYCLIntelFPGALoopCountAttr(const AttributeCommonInfo &CI, Expr *E);
SYCLIntelFPGAInitiationIntervalAttr *
BuildSYCLIntelFPGAInitiationIntervalAttr(const AttributeCommonInfo &CI,
Expr *E);
SYCLIntelFPGAMaxConcurrencyAttr *
BuildSYCLIntelFPGAMaxConcurrencyAttr(const AttributeCommonInfo &CI, Expr *E);
SYCLIntelFPGAMaxInterleavingAttr *
BuildSYCLIntelFPGAMaxInterleavingAttr(const AttributeCommonInfo &CI, Expr *E);
SYCLIntelFPGASpeculatedIterationsAttr *
BuildSYCLIntelFPGASpeculatedIterationsAttr(const AttributeCommonInfo &CI,
Expr *E);
SYCLIntelFPGALoopCoalesceAttr *
BuildSYCLIntelFPGALoopCoalesceAttr(const AttributeCommonInfo &CI, Expr *E);
SYCLIntelFPGAMaxReinvocationDelayAttr *
BuildSYCLIntelFPGAMaxReinvocationDelayAttr(const AttributeCommonInfo &CI,
Expr *E);
SYCLIntelLoopCountAttr *
BuildSYCLIntelLoopCountAttr(const AttributeCommonInfo &CI, Expr *E);
SYCLIntelInitiationIntervalAttr *
BuildSYCLIntelInitiationIntervalAttr(const AttributeCommonInfo &CI,
Expr *E);
SYCLIntelMaxConcurrencyAttr *
BuildSYCLIntelMaxConcurrencyAttr(const AttributeCommonInfo &CI, Expr *E);
SYCLIntelMaxInterleavingAttr *
BuildSYCLIntelMaxInterleavingAttr(const AttributeCommonInfo &CI, Expr *E);
SYCLIntelSpeculatedIterationsAttr *
BuildSYCLIntelSpeculatedIterationsAttr(const AttributeCommonInfo &CI,
Expr *E);
SYCLIntelLoopCoalesceAttr *
BuildSYCLIntelLoopCoalesceAttr(const AttributeCommonInfo &CI, Expr *E);
SYCLIntelMaxReinvocationDelayAttr *
BuildSYCLIntelMaxReinvocationDelayAttr(const AttributeCommonInfo &CI,
Expr *E);

bool CheckQualifiedFunctionForTypeId(QualType T, SourceLocation Loc);

Expand Down Expand Up @@ -10988,7 +10988,7 @@ class Sema final {
/// attribute to be added (usually because of a pragma).
void AddOptnoneAttributeIfNoConflicts(FunctionDecl *FD, SourceLocation Loc);

void AddIntelFPGABankBitsAttr(Decl *D, const AttributeCommonInfo &CI,
void AddSYCLIntelBankBitsAttr(Decl *D, const AttributeCommonInfo &CI,
Expr **Exprs, unsigned Size);
void AddWorkGroupSizeHintAttr(Decl *D, const AttributeCommonInfo &CI,
Expr *XDim, Expr *YDim, Expr *ZDim);
Expand Down Expand Up @@ -11024,38 +11024,38 @@ class Sema final {
Expr *E);
SYCLIntelLoopFuseAttr *
MergeSYCLIntelLoopFuseAttr(Decl *D, const SYCLIntelLoopFuseAttr &A);
void AddIntelFPGAPrivateCopiesAttr(Decl *D, const AttributeCommonInfo &CI,
void AddSYCLIntelPrivateCopiesAttr(Decl *D, const AttributeCommonInfo &CI,
Expr *E);
void AddIntelFPGAMaxReplicatesAttr(Decl *D, const AttributeCommonInfo &CI,
void AddSYCLIntelMaxReplicatesAttr(Decl *D, const AttributeCommonInfo &CI,
Expr *E);
IntelFPGAMaxReplicatesAttr *
MergeIntelFPGAMaxReplicatesAttr(Decl *D, const IntelFPGAMaxReplicatesAttr &A);
void AddIntelFPGAForcePow2DepthAttr(Decl *D, const AttributeCommonInfo &CI,
SYCLIntelMaxReplicatesAttr *
MergeSYCLIntelMaxReplicatesAttr(Decl *D, const SYCLIntelMaxReplicatesAttr &A);
void AddSYCLIntelForcePow2DepthAttr(Decl *D, const AttributeCommonInfo &CI,
Expr *E);
IntelFPGAForcePow2DepthAttr *
MergeIntelFPGAForcePow2DepthAttr(Decl *D,
const IntelFPGAForcePow2DepthAttr &A);
void AddSYCLIntelFPGAInitiationIntervalAttr(Decl *D,
const AttributeCommonInfo &CI,
Expr *E);
SYCLIntelFPGAInitiationIntervalAttr *MergeSYCLIntelFPGAInitiationIntervalAttr(
Decl *D, const SYCLIntelFPGAInitiationIntervalAttr &A);
SYCLIntelForcePow2DepthAttr *
MergeSYCLIntelForcePow2DepthAttr(Decl *D,
const SYCLIntelForcePow2DepthAttr &A);
void AddSYCLIntelInitiationIntervalAttr(Decl *D,
const AttributeCommonInfo &CI,
Expr *E);
SYCLIntelInitiationIntervalAttr *MergeSYCLIntelInitiationIntervalAttr(
Decl *D, const SYCLIntelInitiationIntervalAttr &A);

SYCLIntelFPGAMaxConcurrencyAttr *MergeSYCLIntelFPGAMaxConcurrencyAttr(
Decl *D, const SYCLIntelFPGAMaxConcurrencyAttr &A);
SYCLIntelMaxConcurrencyAttr *MergeSYCLIntelMaxConcurrencyAttr(
Decl *D, const SYCLIntelMaxConcurrencyAttr &A);
void AddSYCLIntelMaxGlobalWorkDimAttr(Decl *D, const AttributeCommonInfo &CI,
Expr *E);
SYCLIntelMaxGlobalWorkDimAttr *
MergeSYCLIntelMaxGlobalWorkDimAttr(Decl *D,
const SYCLIntelMaxGlobalWorkDimAttr &A);
void AddIntelFPGABankWidthAttr(Decl *D, const AttributeCommonInfo &CI,
void AddSYCLIntelBankWidthAttr(Decl *D, const AttributeCommonInfo &CI,
Expr *E);
IntelFPGABankWidthAttr *
MergeIntelFPGABankWidthAttr(Decl *D, const IntelFPGABankWidthAttr &A);
void AddIntelFPGANumBanksAttr(Decl *D, const AttributeCommonInfo &CI,
SYCLIntelBankWidthAttr *
MergeSYCLIntelBankWidthAttr(Decl *D, const SYCLIntelBankWidthAttr &A);
void AddSYCLIntelNumBanksAttr(Decl *D, const AttributeCommonInfo &CI,
Expr *E);
IntelFPGANumBanksAttr *
MergeIntelFPGANumBanksAttr(Decl *D, const IntelFPGANumBanksAttr &A);
SYCLIntelNumBanksAttr *
MergeSYCLIntelNumBanksAttr(Decl *D, const SYCLIntelNumBanksAttr &A);
SYCLDeviceHasAttr *MergeSYCLDeviceHasAttr(Decl *D,
const SYCLDeviceHasAttr &A);
void AddSYCLDeviceHasAttr(Decl *D, const AttributeCommonInfo &CI,
Expand Down Expand Up @@ -11173,11 +11173,11 @@ class Sema final {
SYCLIntelPipeIOAttr *MergeSYCLIntelPipeIOAttr(Decl *D,
const SYCLIntelPipeIOAttr &A);

/// AddSYCLIntelFPGAMaxConcurrencyAttr - Adds a max_concurrency attribute to a
/// AddSYCLIntelMaxConcurrencyAttr - Adds a max_concurrency attribute to a
/// particular declaration.
void AddSYCLIntelFPGAMaxConcurrencyAttr(Decl *D,
const AttributeCommonInfo &CI,
Expr *E);
void AddSYCLIntelMaxConcurrencyAttr(Decl *D,
const AttributeCommonInfo &CI,
Expr *E);

bool checkNSReturnsRetainedReturnType(SourceLocation loc, QualType type);
bool checkAllowedSYCLInitializer(VarDecl *VD);
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/AST/TypePrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1754,7 +1754,7 @@ void TypePrinter::printAttributedAfter(const AttributedType *T,
// AttributedType nodes for them.
break;

case attr::SYCLFPGAPipe:
case attr::SYCLIntelPipe:
OS << "pipe";
break;

Expand Down
Loading