mirror of
				https://github.com/intel/intel-graphics-compiler.git
				synced 2025-11-04 08:21:06 +08:00 
			
		
		
		
	Internal refactoring
Change-Id: I6b67eaa96a991998351ce07133ae0220bce6119c
This commit is contained in:
		@ -46,6 +46,12 @@ namespace
 | 
			
		||||
        VectorType* VTy = dyn_cast<VectorType>(V->getType());
 | 
			
		||||
        return VTy ? (int)VTy->getNumElements() : 1;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    inline int getTypeSizeInBits(Type* Ty) {
 | 
			
		||||
        int scalarBits = Ty->getScalarSizeInBits();
 | 
			
		||||
        VectorType* VTy = dyn_cast<VectorType>(Ty);
 | 
			
		||||
        return scalarBits * (VTy ? (int)VTy->getNumElements() : 1);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
char VariableReuseAnalysis::ID = 0;
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user