Skip to content

Commit 458d5f0

Browse files
committed
clang-format
1 parent e982a61 commit 458d5f0

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

clang/lib/CodeGen/CGHLSLRuntime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ createBufferHandleType(const HLSLBufferDecl *BufDecl) {
191191
// It is not quaranteed that all declarations in a buffer have an annotation.
192192
// For those where it is not specified a -1 value is added to the Layout
193193
// vector. In the final layout these declarations will be placed at the end
194-
// of the HLSL buffer after all of the elements with specified offset.
194+
// of the HLSL buffer after all of the elements with specified offset.
195195
static void fillPackoffsetLayout(const HLSLBufferDecl *BufDecl,
196196
SmallVector<int32_t> &Layout) {
197197
assert(Layout.empty() && "expected empty vector for layout");

clang/lib/CodeGen/HLSLBufferLayoutBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ namespace CodeGen {
6464
// user-specified offsets. Not all elements must have a packoffset/register(c#)
6565
// annotation though. For those that don't, the Packoffsets array will constain
6666
// -1 value instead. These elements must be placed at the end of the layout
67-
// after all of the elements with specific offset.
67+
// after all of the elements with specific offset.
6868
llvm::TargetExtType *HLSLBufferLayoutBuilder::createLayoutType(
6969
const RecordType *StructType,
7070
const llvm::SmallVector<int32_t> *Packoffsets) {

clang/lib/CodeGen/Targets/DirectX.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ class DirectXTargetCodeGenInfo : public TargetCodeGenInfo {
2929
DirectXTargetCodeGenInfo(CodeGen::CodeGenTypes &CGT)
3030
: TargetCodeGenInfo(std::make_unique<DefaultABIInfo>(CGT)) {}
3131

32-
llvm::Type *getHLSLType(
33-
CodeGenModule &CGM, const Type *T,
34-
const SmallVector<int32_t> *Packoffsets = nullptr) const override;
32+
llvm::Type *
33+
getHLSLType(CodeGenModule &CGM, const Type *T,
34+
const SmallVector<int32_t> *Packoffsets = nullptr) const override;
3535
};
3636

3737
llvm::Type *DirectXTargetCodeGenInfo::getHLSLType(

clang/lib/CodeGen/Targets/SPIR.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ class CommonSPIRTargetCodeGenInfo : public TargetCodeGenInfo {
5252

5353
unsigned getOpenCLKernelCallingConv() const override;
5454
llvm::Type *getOpenCLType(CodeGenModule &CGM, const Type *T) const override;
55-
llvm::Type *getHLSLType(
56-
CodeGenModule &CGM, const Type *Ty,
57-
const SmallVector<int32_t> *Packoffsets = nullptr) const override;
55+
llvm::Type *
56+
getHLSLType(CodeGenModule &CGM, const Type *Ty,
57+
const SmallVector<int32_t> *Packoffsets = nullptr) const override;
5858
llvm::Type *getSPIRVImageTypeFromHLSLResource(
5959
const HLSLAttributedResourceType::Attributes &attributes,
6060
llvm::Type *ElementType, llvm::LLVMContext &Ctx) const;

0 commit comments

Comments
 (0)