Skip to content

Commit ebde49b

Browse files
committed
Start incorporating review feedback.
1 parent 251476d commit ebde49b

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -768,9 +768,9 @@ AMDGPU Support
768768

769769
- Bump the default code object version to 6. ROCm 6.3 is required to run any program compiled with COV6.
770770
- Introduced a new target specific builtin ``__builtin_amdgcn_processor_is``,
771-
a late / deferred query for the current target processor
771+
a late / deferred query for the current target processor.
772772
- Introduced a new target specific builtin ``__builtin_amdgcn_is_invocable``,
773-
which enables fine-grained, per-builtin, feature availability
773+
which enables fine-grained, per-builtin, feature availability.
774774

775775
NVPTX Support
776776
^^^^^^^^^^^^^^

clang/lib/Sema/SemaAMDGPU.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -368,19 +368,19 @@ void SemaAMDGPU::handleAMDGPUMaxNumWorkGroupsAttr(Decl *D,
368368
}
369369

370370
Expr *SemaAMDGPU::ExpandAMDGPUPredicateBI(CallExpr *CE) {
371-
auto &Ctx = getASTContext();
372-
auto BoolTy = Ctx.getLogicalOperationType();
373-
auto False = llvm::APInt::getZero(Ctx.getIntWidth(BoolTy));
374-
auto True = llvm::APInt::getAllOnes(Ctx.getIntWidth(BoolTy));
375-
auto Loc = CE->getExprLoc();
371+
ASTContext &Ctx = getASTContext();
372+
QualType BoolTy = Ctx.getLogicalOperationType();
373+
llvm::APInt False = llvm::APInt::getZero(Ctx.getIntWidth(BoolTy));
374+
llvm::APInt True = llvm::APInt::getAllOnes(Ctx.getIntWidth(BoolTy));
375+
SourceLocation Loc = CE->getExprLoc();
376376

377377
if (!CE->getBuiltinCallee())
378378
return *ExpandedPredicates
379379
.insert(IntegerLiteral::Create(Ctx, False, BoolTy, Loc))
380380
.first;
381381

382-
auto P = false;
383-
auto BI = CE->getBuiltinCallee();
382+
bool P = false;
383+
unsigned BI = CE->getBuiltinCallee();
384384
if (Ctx.BuiltinInfo.isAuxBuiltinID(BI))
385385
BI = Ctx.BuiltinInfo.getAuxBuiltinID(BI);
386386

@@ -391,7 +391,7 @@ Expr *SemaAMDGPU::ExpandAMDGPUPredicateBI(CallExpr *CE) {
391391
return nullptr;
392392
}
393393

394-
auto N = GFX->getString();
394+
StringRef N = GFX->getString();
395395
if (!Ctx.getTargetInfo().isValidCPUName(N) &&
396396
(!Ctx.getAuxTargetInfo() ||
397397
!Ctx.getAuxTargetInfo()->isValidCPUName(N))) {
@@ -406,7 +406,7 @@ Expr *SemaAMDGPU::ExpandAMDGPUPredicateBI(CallExpr *CE) {
406406
if (auto TID = Ctx.getTargetInfo().getTargetID())
407407
P = TID->find(N) == 0;
408408
} else {
409-
auto *Arg = CE->getArg(0);
409+
Expr *Arg = CE->getArg(0);
410410
if (!Arg || Arg->getType() != Ctx.BuiltinFnTy) {
411411
Diag(Loc, diag::err_amdgcn_is_invocable_arg_invalid_value) << Arg;
412412
return nullptr;

0 commit comments

Comments
 (0)