reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Transforms/Utils/SimplifyLibCalls.cpp
  955     Value *BitfieldC = B.getInt(Bitfield);
  958     Value *C = B.CreateZExtOrTrunc(CI->getArgOperand(1), BitfieldC->getType());
  959     C = B.CreateAnd(C, B.getIntN(Width, 0xFF));
  959     C = B.CreateAnd(C, B.getIntN(Width, 0xFF));
  962     Value *Bounds = B.CreateICmp(ICmpInst::ICMP_ULT, C, B.getIntN(Width, Width),
  962     Value *Bounds = B.CreateICmp(ICmpInst::ICMP_ULT, C, B.getIntN(Width, Width),
  966     Value *Shl = B.CreateShl(B.getIntN(Width, 1ULL), C);
  966     Value *Shl = B.CreateShl(B.getIntN(Width, 1ULL), C);
  967     Value *Bits = B.CreateIsNotNull(B.CreateAnd(Shl, BitfieldC), "memchr.bits");
  967     Value *Bits = B.CreateIsNotNull(B.CreateAnd(Shl, BitfieldC), "memchr.bits");
  971     return B.CreateIntToPtr(B.CreateAnd(Bounds, Bits, "memchr"), CI->getType());
  971     return B.CreateIntToPtr(B.CreateAnd(Bounds, Bits, "memchr"), CI->getType());
  984   return B.CreateGEP(B.getInt8Ty(), SrcStr, B.getInt64(I), "memchr");
  984   return B.CreateGEP(B.getInt8Ty(), SrcStr, B.getInt64(I), "memchr");
  984   return B.CreateGEP(B.getInt8Ty(), SrcStr, B.getInt64(I), "memchr");