]> granicus.if.org Git - clang/commitdiff
[sanitizer-coverag] update the docs in __sanitizer_cov_trace_cmp
authorKostya Serebryany <kcc@google.com>
Thu, 18 Aug 2016 01:26:36 +0000 (01:26 +0000)
committerKostya Serebryany <kcc@google.com>
Thu, 18 Aug 2016 01:26:36 +0000 (01:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@279028 91177308-0d34-0410-b5e6-96231b3b80d8

docs/SanitizerCoverage.rst

index f7ec65fdd155e9ae2835c898a3e71cbee3687a39..1e506fc89fd8c058a8e8c33817de18406075eb81 100644 (file)
@@ -333,11 +333,11 @@ they will be called by the instrumented code.
 .. code-block:: c++
 
   // Called before a comparison instruction.
-  // SizeAndType is a packed value containing
-  //   - [63:32] the Size of the operands of comparison in bits
-  //   - [31:0] the Type of comparison (one of ICMP_EQ, ... ICMP_SLE)
   // Arg1 and Arg2 are arguments of the comparison.
-  void __sanitizer_cov_trace_cmp(uint64_t SizeAndType, uint64_t Arg1, uint64_t Arg2);
+  void __sanitizer_cov_trace_cmp1(uint8_t Arg1, uint8_t Arg2);
+  void __sanitizer_cov_trace_cmp2(uint16_t Arg1, uint16_t Arg2);
+  void __sanitizer_cov_trace_cmp4(uint32_t Arg1, uint32_t Arg2);
+  void __sanitizer_cov_trace_cmp8(uint64_t Arg1, uint64_t Arg2);
 
   // Called before a switch statement.
   // Val is the switch operand.