diff options
author | Alok Hota <[email protected]> | 2018-06-22 09:11:26 -0500 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2018-06-28 08:18:14 -0500 |
commit | 5b7d4f9428af0dd8035c9483abd3492494062a8a (patch) | |
tree | 6765428635c007f15356828de65f12fa6ce53549 /src/gallium/drivers/swr/rasterizer/jitter/builder_gfx_mem.h | |
parent | f90a60fe7951c7cd063581770e7a3860c253ced3 (diff) |
swr/rast: Updating code style based on current clang-format rules
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer/jitter/builder_gfx_mem.h')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/jitter/builder_gfx_mem.h | 101 |
1 files changed, 51 insertions, 50 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/builder_gfx_mem.h b/src/gallium/drivers/swr/rasterizer/jitter/builder_gfx_mem.h index dd20c06afef..aefbbef9fba 100644 --- a/src/gallium/drivers/swr/rasterizer/jitter/builder_gfx_mem.h +++ b/src/gallium/drivers/swr/rasterizer/jitter/builder_gfx_mem.h @@ -38,53 +38,54 @@ namespace SwrJit class BuilderGfxMem : public Builder { public: - BuilderGfxMem(JitManager *pJitMgr); + BuilderGfxMem(JitManager* pJitMgr); virtual ~BuilderGfxMem() {} - virtual Value *GEP(Value *Ptr, Value *Idx, Type *Ty = nullptr, const Twine &Name = ""); - virtual Value *GEP(Type *Ty, Value *Ptr, Value *Idx, const Twine &Name = ""); - virtual Value * - GEP(Value *Ptr, const std::initializer_list<Value *> &indexList, Type *Ty = nullptr); - virtual Value * - GEP(Value *Ptr, const std::initializer_list<uint32_t> &indexList, Type *Ty = nullptr); + virtual Value* GEP(Value* Ptr, Value* Idx, Type* Ty = nullptr, const Twine& Name = ""); + virtual Value* GEP(Type* Ty, Value* Ptr, Value* Idx, const Twine& Name = ""); + virtual Value* + GEP(Value* Ptr, const std::initializer_list<Value*>& indexList, Type* Ty = nullptr); + virtual Value* + GEP(Value* Ptr, const std::initializer_list<uint32_t>& indexList, Type* Ty = nullptr); - virtual LoadInst *LOAD(Value * Ptr, - const char * Name, - Type * Ty = nullptr, + virtual LoadInst* LOAD(Value* Ptr, + const char* Name, + Type* Ty = nullptr, JIT_MEM_CLIENT usage = MEM_CLIENT_INTERNAL); - virtual LoadInst *LOAD(Value * Ptr, - const Twine & Name = "", - Type * Ty = nullptr, + virtual LoadInst* LOAD(Value* Ptr, + const Twine& Name = "", + Type* Ty = nullptr, JIT_MEM_CLIENT usage = MEM_CLIENT_INTERNAL); - virtual LoadInst *LOAD(Value * Ptr, + virtual LoadInst* LOAD(Value* Ptr, bool isVolatile, - const Twine & Name = "", - Type * Ty = nullptr, + const Twine& Name = "", + Type* Ty = nullptr, JIT_MEM_CLIENT usage = MEM_CLIENT_INTERNAL); - virtual LoadInst *LOAD(Value * BasePtr, - const std::initializer_list<uint32_t> &offset, - const llvm::Twine & Name = "", - Type * Ty = nullptr, + virtual LoadInst* LOAD(Value* BasePtr, + const std::initializer_list<uint32_t>& offset, + const llvm::Twine& Name = "", + Type* Ty = nullptr, JIT_MEM_CLIENT usage = MEM_CLIENT_INTERNAL); - virtual CallInst *MASKED_LOAD(Value * Ptr, + + virtual CallInst* MASKED_LOAD(Value* Ptr, unsigned Align, - Value * Mask, - Value * PassThru = nullptr, - const Twine & Name = "", - Type * Ty = nullptr, + Value* Mask, + Value* PassThru = nullptr, + const Twine& Name = "", + Type* Ty = nullptr, JIT_MEM_CLIENT usage = MEM_CLIENT_INTERNAL); - virtual Value *GATHERPS(Value * src, - Value * pBase, - Value * indices, - Value * mask, + virtual Value* GATHERPS(Value* src, + Value* pBase, + Value* indices, + Value* mask, uint8_t scale = 1, JIT_MEM_CLIENT usage = MEM_CLIENT_INTERNAL); - virtual Value *GATHERDD(Value * src, - Value * pBase, - Value * indices, - Value * mask, + virtual Value* GATHERDD(Value* src, + Value* pBase, + Value* indices, + Value* mask, uint8_t scale = 1, JIT_MEM_CLIENT usage = MEM_CLIENT_INTERNAL); @@ -95,35 +96,35 @@ namespace SwrJit JIT_MEM_CLIENT usage = MEM_CLIENT_INTERNAL); - Value *TranslateGfxAddressForRead(Value * xpGfxAddress, - Type * PtrTy = nullptr, - const Twine & Name = "", + Value* TranslateGfxAddressForRead(Value* xpGfxAddress, + Type* PtrTy = nullptr, + const Twine& Name = "", JIT_MEM_CLIENT usage = MEM_CLIENT_INTERNAL); - Value *TranslateGfxAddressForWrite(Value * xpGfxAddress, - Type * PtrTy = nullptr, - const Twine & Name = "", + Value* TranslateGfxAddressForWrite(Value* xpGfxAddress, + Type* PtrTy = nullptr, + const Twine& Name = "", JIT_MEM_CLIENT usage = MEM_CLIENT_INTERNAL); protected: - void AssertGFXMemoryParams(Value *ptr, Builder::JIT_MEM_CLIENT usage); + void AssertGFXMemoryParams(Value* ptr, Builder::JIT_MEM_CLIENT usage); virtual void NotifyPrivateContextSet(); - virtual Value *OFFSET_TO_NEXT_COMPONENT(Value *base, Constant *offset); + virtual Value* OFFSET_TO_NEXT_COMPONENT(Value* base, Constant* offset); - Value *TranslationHelper(Value *Ptr, Type *Ty); + Value* TranslationHelper(Value* Ptr, Type* Ty); - FunctionType *GetTranslationFunctionType() { return mpTranslationFuncTy; } - Value * GetTranslationFunctionForRead() { return mpfnTranslateGfxAddressForRead; } - Value * GetTranslationFunctionForWrite() { return mpfnTranslateGfxAddressForWrite; } - Value * GetParamSimDC() { return mpParamSimDC; } + FunctionType* GetTranslationFunctionType() { return mpTranslationFuncTy; } + Value* GetTranslationFunctionForRead() { return mpfnTranslateGfxAddressForRead; } + Value* GetTranslationFunctionForWrite() { return mpfnTranslateGfxAddressForWrite; } + Value* GetParamSimDC() { return mpParamSimDC; } private: - FunctionType *mpTranslationFuncTy; - Value * mpfnTranslateGfxAddressForRead; - Value * mpfnTranslateGfxAddressForWrite; - Value * mpParamSimDC; + FunctionType* mpTranslationFuncTy; + Value* mpfnTranslateGfxAddressForRead; + Value* mpfnTranslateGfxAddressForWrite; + Value* mpParamSimDC; }; } // namespace SwrJit |