search for: emitannotationunit

Displaying 1 result from an estimated 1 matches for "emitannotationunit".

2018 May 30
1
llvm.annotation arguments
Hello all, According to *clang/lib/CodeGen/CodeGenFunction.cpp*, a LLVM annotation intrinsic call has 4 arguments: - llvm::Value *AnnotatedVal, - Builder.CreateBitCast(CGM.EmitAnnotationString(AnnotationStr), Int8PtrTy), - Builder.CreateBitCast(CGM.EmitAnnotationUnit(Location), Int8PtrTy), - CGM.EmitAnnotationLineNo(Location) However, this is what an annotation intrinsic *char __attribute__((annotate("DIFF"))) diff* looks like in the IR: @.str = private unnamed_addr constant [5 x i8] c"DIFF\00", section "llvm.metadata" @.str.1 =...