In order to attach debug info to labels. We need to enable the capability of attaching metadata to BasicBlock. If we have following LLVM IR fragment,
top:
%0 = load i32, i32* %a.addr, align 4
we could attach debug metadata to label 'top' as follow
top: !10
%0 = load i32, i32* %a.addr, align 4
!10 = DILabel(name: top, ...)
Would you mind elaborating what the enum, RefCountBits and RefCountMask are for?