Skip to content

Commit 6b49e6d

Browse files
committed
[SQUASH to 36d4d36] Address sycl-post-link review comments.
Signed-off-by: Konstantin S Bobrovsky <[email protected]>
1 parent 36d4d36 commit 6b49e6d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

llvm/test/tools/sycl-post-link/omit_kernel_args.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ declare void @bar(i8)
3535

3636
; CHECK-PROP: [SYCL/kernel param opt]
3737
; // Base64 encoding in the prop file (including 8 bytes length):
38-
; CHECK-PROP-NEXT: SpirKernel1=2|CAAAAAAAAAQA
38+
; CHECK-PROP-NEXT-DAG: SpirKernel1=2|CAAAAAAAAAQA
3939
; // Base64 encoding in the prop file (including 8 bytes length):
40-
; CHECK-PROP-NEXT: SpirKernel2=2|LAAAAAAAAAgfGA
40+
; CHECK-PROP-NEXT-DAG: SpirKernel2=2|LAAAAAAAAAgfGA
4141

4242
; CHECK-TABLE: [Code|Properties]
4343
; CHECK-TABLE-NEXT: {{.*}}files_0.prop

llvm/tools/sycl-post-link/SPIRKernelParamOptInfo.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,15 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
#include "llvm/ADT/BitVector.h"
16+
#include "llvm/ADT/DenseMap.h"
1617
#include "llvm/ADT/StringRef.h"
1718
#include "llvm/IR/Module.h"
1819
#include "llvm/IR/PassManager.h"
1920

20-
#include <map>
21-
#include <string>
22-
2321
namespace llvm {
2422

2523
// the StringRef key refers to a function name
26-
using SPIRKernelParamOptInfoBaseTy = std::map<StringRef, BitVector>;
24+
using SPIRKernelParamOptInfoBaseTy = DenseMap<StringRef, BitVector>;
2725

2826
class SPIRKernelParamOptInfo : public SPIRKernelParamOptInfoBaseTy {
2927
public:

0 commit comments

Comments
 (0)