Skip to content

Commit

Permalink
remove some ops that are not yet defined in LLVM 15
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy authored and nhaehnle committed Oct 26, 2023
1 parent 48e93dc commit f00b575
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions lib/Dialect/OpDescription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,25 +145,37 @@ template <> const OpDescription &OpDescription::get<BinaryOperator>() {
// ============================================================================
// Descriptions of intrinsic facades implemented in LLVM


#if HAVE_LLVM_VERSION_MAJOR >= 16
HANDLE_INTRINSIC_DESC_OPCODE_SET(LifetimeIntrinsic, Intrinsic::lifetime_start,
Intrinsic::lifetime_end)
#endif

// Add Intrinsic::dbg_addr back for sufficiently recent LLVM
HANDLE_INTRINSIC_DESC_OPCODE_SET(DbgInfoIntrinsic, Intrinsic::dbg_declare,
Intrinsic::dbg_value, Intrinsic::dbg_label,
Intrinsic::dbg_assign)
Intrinsic::dbg_value, Intrinsic::dbg_label
#if HAVE_LLVM_VERSION_MAJOR >= 16
,Intrinsic::dbg_assign
#endif
)

// Add Intrinsic::dbg_addr back for sufficiently recent LLVM
HANDLE_INTRINSIC_DESC_OPCODE_SET(DbgVariableIntrinsic, Intrinsic::dbg_declare,
Intrinsic::dbg_value, Intrinsic::dbg_assign)
Intrinsic::dbg_value
#if HAVE_LLVM_VERSION_MAJOR >= 16
,Intrinsic::dbg_assign
#endif
)

HANDLE_INTRINSIC_DESC(DbgDeclareInst, dbg_declare)
HANDLE_INTRINSIC_DESC(DbgValueInst, dbg_value)

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

#if HAVE_LLVM_VERSION_MAJOR >= 16
HANDLE_INTRINSIC_DESC(DbgAssignIntrinsic, dbg_assign)
#endif
HANDLE_INTRINSIC_DESC(DbgLabelInst, dbg_label)

HANDLE_INTRINSIC_DESC_OPCODE_SET(AtomicMemIntrinsic,
Expand Down

0 comments on commit f00b575

Please sign in to comment.