Skip to content

Commit f00b575

Browse files
vchuravynhaehnle
authored andcommitted
remove some ops that are not yet defined in LLVM 15
1 parent 48e93dc commit f00b575

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

lib/Dialect/OpDescription.cpp

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,25 +145,37 @@ template <> const OpDescription &OpDescription::get<BinaryOperator>() {
145145
// ============================================================================
146146
// Descriptions of intrinsic facades implemented in LLVM
147147

148+
149+
#if HAVE_LLVM_VERSION_MAJOR >= 16
148150
HANDLE_INTRINSIC_DESC_OPCODE_SET(LifetimeIntrinsic, Intrinsic::lifetime_start,
149151
Intrinsic::lifetime_end)
152+
#endif
150153

151154
// Add Intrinsic::dbg_addr back for sufficiently recent LLVM
152155
HANDLE_INTRINSIC_DESC_OPCODE_SET(DbgInfoIntrinsic, Intrinsic::dbg_declare,
153-
Intrinsic::dbg_value, Intrinsic::dbg_label,
154-
Intrinsic::dbg_assign)
156+
Intrinsic::dbg_value, Intrinsic::dbg_label
157+
#if HAVE_LLVM_VERSION_MAJOR >= 16
158+
,Intrinsic::dbg_assign
159+
#endif
160+
)
155161

156162
// Add Intrinsic::dbg_addr back for sufficiently recent LLVM
157163
HANDLE_INTRINSIC_DESC_OPCODE_SET(DbgVariableIntrinsic, Intrinsic::dbg_declare,
158-
Intrinsic::dbg_value, Intrinsic::dbg_assign)
164+
Intrinsic::dbg_value
165+
#if HAVE_LLVM_VERSION_MAJOR >= 16
166+
,Intrinsic::dbg_assign
167+
#endif
168+
)
159169

160170
HANDLE_INTRINSIC_DESC(DbgDeclareInst, dbg_declare)
161171
HANDLE_INTRINSIC_DESC(DbgValueInst, dbg_value)
162172

163173
// Add this back for sufficiently recent LLVM
164174
// HANDLE_INTRINSIC_DESC(DbgAddrIntrinsic, dbg_addr)
165175

176+
#if HAVE_LLVM_VERSION_MAJOR >= 16
166177
HANDLE_INTRINSIC_DESC(DbgAssignIntrinsic, dbg_assign)
178+
#endif
167179
HANDLE_INTRINSIC_DESC(DbgLabelInst, dbg_label)
168180

169181
HANDLE_INTRINSIC_DESC_OPCODE_SET(AtomicMemIntrinsic,

0 commit comments

Comments
 (0)