|
94 | 94 |
|
95 | 95 | #define DEBUG_TYPE "spirv"
|
96 | 96 |
|
97 |
| -using namespace std; |
98 | 97 | using namespace llvm;
|
99 | 98 | using namespace SPIRV;
|
100 | 99 | using namespace OCLUtil;
|
@@ -1258,8 +1257,8 @@ Value *SPIRVToLLVM::oclTransConstantSampler(SPIRV::SPIRVConstantSampler *BCS,
|
1258 | 1257 | Value *SPIRVToLLVM::oclTransConstantPipeStorage(
|
1259 | 1258 | SPIRV::SPIRVConstantPipeStorage *BCPS) {
|
1260 | 1259 |
|
1261 |
| - string CPSName = string(kSPIRVTypeName::PrefixAndDelim) + |
1262 |
| - kSPIRVTypeName::ConstantPipeStorage; |
| 1260 | + std::string CPSName = std::string(kSPIRVTypeName::PrefixAndDelim) + |
| 1261 | + kSPIRVTypeName::ConstantPipeStorage; |
1263 | 1262 |
|
1264 | 1263 | auto *Int32Ty = IntegerType::getInt32Ty(*Context);
|
1265 | 1264 | auto *CPSTy = StructType::getTypeByName(*Context, CPSName);
|
@@ -3439,7 +3438,7 @@ SPIRVToLLVM::SPIRVToLLVM(Module *LLVMModule, SPIRVModule *TheSPIRVModule)
|
3439 | 3438 | }
|
3440 | 3439 |
|
3441 | 3440 | std::string getSPIRVFuncSuffix(SPIRVInstruction *BI) {
|
3442 |
| - string Suffix = ""; |
| 3441 | + std::string Suffix = ""; |
3443 | 3442 | if (BI->getOpCode() == OpCreatePipeFromPipeStorage) {
|
3444 | 3443 | auto *CPFPS = static_cast<SPIRVCreatePipeFromPipeStorage *>(BI);
|
3445 | 3444 | assert(CPFPS->getType()->isTypePipe() &&
|
@@ -3495,7 +3494,7 @@ std::string getSPIRVFuncSuffix(SPIRVInstruction *BI) {
|
3495 | 3494 | int Dim = EleTy->isTypeArray() ? EleTy->getArrayLength() : 1;
|
3496 | 3495 | assert((EleTy->isTypeInt() && Dim == 1) ||
|
3497 | 3496 | (EleTy->isTypeArray() && Dim >= 2 && Dim <= 3));
|
3498 |
| - ostringstream OS; |
| 3497 | + std::ostringstream OS; |
3499 | 3498 | OS << Dim;
|
3500 | 3499 | Suffix += OS.str() + "D";
|
3501 | 3500 | }
|
|
0 commit comments