File tree 12 files changed +24
-12
lines changed 12 files changed +24
-12
lines changed Original file line number Diff line number Diff line change 36
36
// friendly IR form for further translation into SPIR-V
37
37
//
38
38
// ===----------------------------------------------------------------------===//
39
- #define DEBUG_TYPE " ocl-to-spv"
40
39
41
40
#include " OCLToSPIRV.h"
42
41
#include " OCLTypeToSPIRV.h"
55
54
#include < regex>
56
55
#include < set>
57
56
57
+ #define DEBUG_TYPE " ocl-to-spv"
58
+
58
59
using namespace llvm ;
59
60
using namespace PatternMatch ;
60
61
using namespace SPIRV ;
Original file line number Diff line number Diff line change 38
38
// propagates the mapping to the uses of the kernel arguments.
39
39
//
40
40
// ===----------------------------------------------------------------------===//
41
- #define DEBUG_TYPE " cltytospv"
42
41
43
42
#include " OCLTypeToSPIRV.h"
44
43
#include " OCLUtil.h"
50
49
#include < iterator>
51
50
#include < set>
52
51
52
+ #define DEBUG_TYPE " cltytospv"
53
+
53
54
using namespace llvm ;
54
55
using namespace SPIRV ;
55
56
using namespace OCLUtil ;
Original file line number Diff line number Diff line change 35
35
// This file implements OCL utility functions.
36
36
//
37
37
// ===----------------------------------------------------------------------===//
38
- #define DEBUG_TYPE " oclutil"
39
38
40
39
#include " OCLUtil.h"
41
40
#include " SPIRVEntry.h"
50
49
#include " llvm/Support/CommandLine.h"
51
50
#include " llvm/Support/Debug.h"
52
51
52
+ #define DEBUG_TYPE " oclutil"
53
+
53
54
using namespace llvm ;
54
55
using namespace SPIRV ;
55
56
Original file line number Diff line number Diff line change 36
36
// further translation to SPIR-V.
37
37
//
38
38
// ===----------------------------------------------------------------------===//
39
- #define DEBUG_TYPE " clmdtospv"
40
39
41
40
#include " PreprocessMetadata.h"
42
41
#include " OCLUtil.h"
51
50
#include " llvm/Support/CommandLine.h"
52
51
#include " llvm/TargetParser/Triple.h"
53
52
53
+ #define DEBUG_TYPE " clmdtospv"
54
+
54
55
using namespace llvm ;
55
56
using namespace SPIRV ;
56
57
using namespace OCLUtil ;
Original file line number Diff line number Diff line change 35
35
// This file implements lowering instructions with bool operands.
36
36
//
37
37
// ===----------------------------------------------------------------------===//
38
- #define DEBUG_TYPE " spvbool"
39
38
40
39
#include " SPIRVLowerBool.h"
41
40
#include " SPIRVInternal.h"
42
41
#include " libSPIRV/SPIRVDebug.h"
43
42
44
43
#include " llvm/IR/IRBuilder.h"
45
44
45
+ #define DEBUG_TYPE " spvbool"
46
+
46
47
using namespace llvm ;
47
48
using namespace SPIRV ;
48
49
Original file line number Diff line number Diff line change 35
35
// This file implements regularization of LLVM module for SPIR-V.
36
36
//
37
37
// ===----------------------------------------------------------------------===//
38
- #define DEBUG_TYPE " spv-lower-const-expr"
39
38
40
39
#include " SPIRVLowerConstExpr.h"
41
40
#include " OCLUtil.h"
56
55
#include < list>
57
56
#include < set>
58
57
58
+ #define DEBUG_TYPE " spv-lower-const-expr"
59
+
59
60
using namespace llvm ;
60
61
using namespace SPIRV ;
61
62
using namespace OCLUtil ;
Original file line number Diff line number Diff line change 27
27
// into basic LLVM operations.
28
28
//
29
29
// ===----------------------------------------------------------------------===//
30
- #define DEBUG_TYPE " spv-lower-llvm_intrinsic"
31
30
32
31
#include " SPIRVLowerLLVMIntrinsic.h"
33
32
#include " LLVMBitreverse.h"
44
43
#include " llvm/Linker/Linker.h"
45
44
#include " llvm/Support/SourceMgr.h"
46
45
46
+ #define DEBUG_TYPE " spv-lower-llvm_intrinsic"
47
+
47
48
using namespace llvm ;
48
49
using namespace SPIRV ;
49
50
Original file line number Diff line number Diff line change 35
35
// This file implements lowering llvm.memmove into several llvm.memcpys.
36
36
//
37
37
// ===----------------------------------------------------------------------===//
38
- #define DEBUG_TYPE " spvmemmove"
39
38
40
39
#include " SPIRVLowerMemmove.h"
41
40
#include " SPIRVInternal.h"
45
44
#include " llvm/IR/IRBuilder.h"
46
45
#include " llvm/Transforms/Utils/LowerMemIntrinsics.h"
47
46
47
+ #define DEBUG_TYPE " spvmemmove"
48
+
48
49
using namespace llvm ;
49
50
using namespace SPIRV ;
50
51
Original file line number Diff line number Diff line change 53
53
// with null pointers.
54
54
//
55
55
// ===----------------------------------------------------------------------===//
56
- #define DEBUG_TYPE " spv-lower-ocl-blocks"
57
56
58
57
#include " SPIRVLowerOCLBlocks.h"
59
58
#include " SPIRVInternal.h"
63
62
#include " llvm/Pass.h"
64
63
#include " llvm/Support/Regex.h"
65
64
65
+ #define DEBUG_TYPE " spv-lower-ocl-blocks"
66
+
66
67
using namespace llvm ;
67
68
68
69
namespace {
Original file line number Diff line number Diff line change 35
35
// This file implements regularization of LLVM module for SPIR-V.
36
36
//
37
37
// ===----------------------------------------------------------------------===//
38
- #define DEBUG_TYPE " spvregular"
39
38
40
39
#include " SPIRVRegularizeLLVM.h"
41
40
#include " OCLUtil.h"
54
53
#include < set>
55
54
#include < vector>
56
55
56
+ #define DEBUG_TYPE " spvregular"
57
+
57
58
using namespace llvm ;
58
59
using namespace SPIRV ;
59
60
using namespace OCLUtil ;
Original file line number Diff line number Diff line change 39
39
// in this pass as a common functionality for both versions.
40
40
//
41
41
// ===----------------------------------------------------------------------===//
42
- #define DEBUG_TYPE " spvtocl"
43
42
44
43
#include " SPIRVToOCL.h"
45
44
#include " llvm/IR/TypedPointerType.h"
46
45
#include " llvm/IR/Verifier.h"
47
46
#include " llvm/Support/CommandLine.h"
48
47
48
+ #define DEBUG_TYPE " spvtocl"
49
+
49
50
namespace SPIRV {
50
51
51
52
void SPIRVToOCLBase::visitCallInst (CallInst &CI) {
Original file line number Diff line number Diff line change 35
35
// This file implements transform SPIR-V builtins to OCL 2.0 builtins.
36
36
//
37
37
// ===----------------------------------------------------------------------===//
38
- #define DEBUG_TYPE " spvtocl20"
39
38
40
39
#include " OCLUtil.h"
41
40
#include " SPIRVToOCL.h"
42
41
#include " llvm/IR/Verifier.h"
43
42
43
+ #define DEBUG_TYPE " spvtocl20"
44
+
44
45
namespace SPIRV {
45
46
46
47
char SPIRVToOCL20Legacy::ID = 0 ;
You can’t perform that action at this time.
0 commit comments