Skip to content

Commit ffc374c

Browse files
committed
conversion tritonGPUToLLVM TargetInfoBase decoupling
1 parent 7ea98fc commit ffc374c

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

third_party/iluvatar/backend/flagtree_backend_specialization/include/flagtree_spec.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
#include "triton/Analysis/iluvatar_Membar.h"
33
#include "triton/Analysis/iluvatar_Utility.h"
44
#include "triton/Conversion/TritonGPUToLLVM/iluvatar_ElementwiseOpToLLVMBase.h"
5+
#include "triton/Conversion/TritonGPUToLLVM/iluvatar_TargetInfoBase.h"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#ifndef ILUVATAR_TRITON_CONVERSION_TRITONGPU_TO_LLVM_TARGETINFOBASE_H
2+
#define ILUVATAR_TRITON_CONVERSION_TRITONGPU_TO_LLVM_TARGETINFOBASE_H
3+
4+
#define FLAGTREE_SPEC_TargetInfoBase_function
5+
6+
#endif // ILUVATAR_TRITON_CONVERSION_TRITONGPU_TO_LLVM_TARGETINFOBASE_H

third_party/iluvatar/include/triton/Conversion/TritonGPUToLLVM/TargetInfoBase.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,18 @@ class TargetInfoBase {
1313
virtual Value ballot(ConversionPatternRewriter &rewriter, Location loc,
1414
Type type, Value cmp) const = 0;
1515

16+
#ifndef FLAGTREE_SPEC_TargetInfoBase_function
17+
virtual void storeShared(ConversionPatternRewriter &rewriter, Location loc,
18+
Value ptr, Value val, Value pred) const = 0;
19+
virtual Value loadShared(ConversionPatternRewriter &rewriter, Location loc,
20+
const TypeConverter *converter, Value ptr,
21+
Type elemTy, Value pred) const = 0;
22+
#else
1623
virtual Value storeShared(ConversionPatternRewriter &rewriter, Location loc,
1724
Value ptr, Value val, Value pred) const = 0;
1825
virtual Value loadShared(ConversionPatternRewriter &rewriter, Location loc,
1926
Value ptr, Type elemTy, Value pred) const = 0;
27+
#endif
2028

2129
virtual Value shuffleXor(ConversionPatternRewriter &rewriter, Location loc,
2230
Value val, int i) const = 0;

0 commit comments

Comments
 (0)