summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/swr/rasterizer/jitter/JitManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer/jitter/JitManager.h')
-rw-r--r--src/gallium/drivers/swr/rasterizer/jitter/JitManager.h35
1 files changed, 17 insertions, 18 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.h b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.h
index f474143842a..7c0eaa9c31d 100644
--- a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.h
+++ b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.h
@@ -86,7 +86,6 @@ using PassManager = llvm::legacy::PassManager;
#pragma pop_macro("DEBUG")
-using namespace llvm;
//////////////////////////////////////////////////////////////////////////
/// JitInstructionSet
/// @brief Subclass of InstructionSet that allows users to override
@@ -136,7 +135,7 @@ private:
-struct JitLLVMContext : LLVMContext
+struct JitLLVMContext : llvm::LLVMContext
{
};
@@ -150,32 +149,32 @@ struct JitManager
~JitManager(){};
JitLLVMContext mContext; ///< LLVM compiler
- IRBuilder<> mBuilder; ///< LLVM IR Builder
- ExecutionEngine* mpExec;
+ llvm::IRBuilder<> mBuilder; ///< LLVM IR Builder
+ llvm::ExecutionEngine* mpExec;
// Need to be rebuilt after a JIT and before building new IR
- Module* mpCurrentModule;
+ llvm::Module* mpCurrentModule;
bool mIsModuleFinalized;
uint32_t mJitNumber;
uint32_t mVWidth;
// Built in types.
- Type* mInt8Ty;
- Type* mInt32Ty;
- Type* mInt64Ty;
- Type* mFP32Ty;
- StructType* mV4FP32Ty;
- StructType* mV4Int32Ty;
+ llvm::Type* mInt8Ty;
+ llvm::Type* mInt32Ty;
+ llvm::Type* mInt64Ty;
+ llvm::Type* mFP32Ty;
+ llvm::StructType* mV4FP32Ty;
+ llvm::StructType* mV4Int32Ty;
- Type* mSimtFP32Ty;
- Type* mSimtInt32Ty;
+ llvm::Type* mSimtFP32Ty;
+ llvm::Type* mSimtInt32Ty;
- Type* mSimdVectorInt32Ty;
- Type* mSimdVectorTy;
+ llvm::Type* mSimdVectorInt32Ty;
+ llvm::Type* mSimdVectorTy;
// fetch shader types
- FunctionType* mFetchShaderTy;
+ llvm::FunctionType* mFetchShaderTy;
JitInstructionSet mArch;
std::string mCore;
@@ -183,6 +182,6 @@ struct JitManager
void SetupNewModule();
bool SetupModuleFromIR(const uint8_t *pIR);
- void DumpAsm(Function* pFunction, const char* fileName);
- static void DumpToFile(Function *f, const char *fileName);
+ void DumpAsm(llvm::Function* pFunction, const char* fileName);
+ static void DumpToFile(llvm::Function *f, const char *fileName);
};