search for: annotationstr

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

Did you mean: annotations
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 consta...