File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff 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.
195195static void fillPackoffsetLayout (const HLSLBufferDecl *BufDecl,
196196 SmallVector<int32_t > &Layout) {
197197 assert (Layout.empty () && " expected empty vector for layout" );
Original file line number Diff line number Diff 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.
6868llvm::TargetExtType *HLSLBufferLayoutBuilder::createLayoutType (
6969 const RecordType *StructType,
7070 const llvm::SmallVector<int32_t > *Packoffsets) {
Original file line number Diff line number Diff 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
3737llvm::Type *DirectXTargetCodeGenInfo::getHLSLType (
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments