Debug intrinsics are allowed to violate SSA dominance and might thus
cause the LLVM import to produce invalid LLVM dialect. This commit
ensures that the debug intrinsics are emitted right after the definition
of their SSA operands.
As the position of debug intrinsics has no meaning, changing it has no
semantic implication.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Dialect/LLVMIR/LLVMIntrinsicOps.td | ||
---|---|---|
554 | Let's maybe a add: // TODO: Implement a two pass solution that translates the debug intrinsics after the entire function as been translated. | |
556–557 | ||
mlir/test/Target/LLVMIR/Import/debug-info.ll | ||
379 | nit: Can you add some checks that show the intrinsic is imported right after the getelementptr? |
mlir/include/mlir/Dialect/LLVMIR/LLVMIntrinsicOps.td | ||
---|---|---|
556–557 | Whups |
Let's maybe a add:
// TODO: Implement a two pass solution that translates the debug intrinsics after the entire function as been translated.