@@ -399,7 +399,7 @@ class CShader
399399 SIMDMode m_SIMDSize{};
400400 uint8_t m_numberInstance = 0 ;
401401 PushInfo pushInfo;
402- EmitPass* m_EmitPass;
402+ EmitPass* m_EmitPass = nullptr ;
403403 uint m_sendStallCycle = 0 ;
404404 uint m_staticCycle = 0 ;
405405 uint m_loopNestedStallCycle = 0 ;
@@ -648,19 +648,19 @@ class CShader
648648 e_alignment preferredAlign);
649649
650650protected:
651- CShaderProgram* m_parent;
652- CodeGenContext* m_ctx;
653- WIAnalysis* m_WI;
654- DeSSA* m_deSSA;
655- CoalescingEngine* m_coalescingEngine;
656- CodeGenPatternMatch* m_CG;
657- llvm::DominatorTree* m_DT;
658- const llvm::DataLayout* m_DL;
659- GenXFunctionGroupAnalysis* m_FGA;
660- VariableReuseAnalysis* m_VRA;
661- ResourceLoopAnalysis* m_RLA;
662-
663- IGC::IGCMD::MetaDataUtils* m_pMdUtils;
651+ CShaderProgram* m_parent = nullptr ;
652+ CodeGenContext* m_ctx = nullptr ;
653+ WIAnalysis* m_WI = nullptr ;
654+ DeSSA* m_deSSA = nullptr ;
655+ CoalescingEngine* m_coalescingEngine = nullptr ;
656+ CodeGenPatternMatch* m_CG = nullptr ;
657+ llvm::DominatorTree* m_DT = nullptr ;
658+ const llvm::DataLayout* m_DL = nullptr ;
659+ GenXFunctionGroupAnalysis* m_FGA = nullptr ;
660+ VariableReuseAnalysis* m_VRA = nullptr ;
661+ ResourceLoopAnalysis* m_RLA = nullptr ;
662+
663+ IGC::IGCMD::MetaDataUtils* m_pMdUtils = nullptr ;
664664
665665#if defined(_DEBUG) || defined(_INTERNAL)
666666 llvm::SpecificBumpPtrAllocator<CVariable> Allocator;
@@ -698,26 +698,26 @@ class CShader
698698
699699 uint m_maxBlockId = 0 ;
700700
701- CVariable* m_R0;
702- CVariable* m_NULL;
703- CVariable* m_TSC;
704- CVariable* m_SR0;
705- CVariable* m_CR0;
706- CVariable* m_CE0;
707- CVariable* m_MSG0;
708- CVariable* m_DBG;
709- CVariable* m_HW_TID;
710- CVariable* m_SP;
711- CVariable* m_FP;
712- CVariable* m_SavedFP;
713- CVariable* m_ARGV;
701+ CVariable* m_R0 = nullptr ;
702+ CVariable* m_NULL = nullptr ;
703+ CVariable* m_TSC = nullptr ;
704+ CVariable* m_SR0 = nullptr ;
705+ CVariable* m_CR0 = nullptr ;
706+ CVariable* m_CE0 = nullptr ;
707+ CVariable* m_MSG0 = nullptr ;
708+ CVariable* m_DBG = nullptr ;
709+ CVariable* m_HW_TID = nullptr ;
710+ CVariable* m_SP = nullptr ;
711+ CVariable* m_FP = nullptr ;
712+ CVariable* m_SavedFP = nullptr ;
713+ CVariable* m_ARGV = nullptr ;
714714 std::array<CVariable*, NUM_ARG_SPACE_RESERVATION_SLOTS> m_ARGVReservedVariables{};
715715 uint32_t m_ARGVReservedVariablesTotalSize = 0 ;
716- CVariable* m_RETV;
717- CVariable* m_SavedSRetPtr;
718- CVariable* m_ImplArgBufPtr;
719- CVariable* m_LocalIdBufPtr;
720- CVariable* m_GlobalBufferArg;
716+ CVariable* m_RETV = nullptr ;
717+ CVariable* m_SavedSRetPtr = nullptr ;
718+ CVariable* m_ImplArgBufPtr = nullptr ;
719+ CVariable* m_LocalIdBufPtr = nullptr ;
720+ CVariable* m_GlobalBufferArg = nullptr ;
721721
722722 // / holds max number of inputs that can be pushed for this shader unit
723723 static const uint32_t m_pMaxNumOfPushedInputs;
@@ -731,8 +731,11 @@ class CShader
731731 // Those two are for stateful token setup. It is a quick
732732 // special case checking. Once a generic approach is added,
733733 // this two fields shall be retired.
734- bool m_HasGlobalStatelessMemoryAccess;
735- bool m_HasConstantStatelessMemoryAccess;
734+ //
735+ // [OCL] preAnalysis()/ParseShaderSpecificOpcode() must
736+ // set this to true if there is any stateless access.
737+ bool m_HasGlobalStatelessMemoryAccess = false ;
738+ bool m_HasConstantStatelessMemoryAccess = false ;
736739
737740 bool m_HasGlobalAtomics = false ;
738741
0 commit comments