/freebsd-11-stable/contrib/llvm-project/clang/lib/Analysis/ |
H A D | ThreadSafetyLogical.cpp | 49 return RNeg ? RightOrOperator(cast<And>(RHS)) 50 : RightAndOperator(cast<And>(RHS)); 56 return RNeg ? RightAndOperator(cast<Or>(RHS)) 57 : RightOrOperator(cast<Or>(RHS)); 61 return implies(LHS, LNeg, cast<Not>(RHS)->exp(), !RNeg); 74 return LNeg ? LeftAndOperator(cast<And>(LHS)) 75 : LeftOrOperator(cast<And>(LHS)); 81 return LNeg ? LeftOrOperator(cast<Or>(LHS)) 82 : LeftAndOperator(cast<Or>(LHS)); 86 return implies(cast<No [all...] |
H A D | ConstructionContext.cpp | 74 ElidedCE = cast<CXXConstructExpr>(ElidedItem.getStmt()); 110 const auto *DS = cast<DeclStmt>(ParentItem.getStmt()); 111 assert(!cast<VarDecl>(DS->getSingleDecl())->getType().getCanonicalType() 120 const auto *RS = cast<ReturnStmt>(ParentItem.getStmt()); 129 const auto *MTE = cast<MaterializeTemporaryExpr>(ParentItem.getStmt()); 145 const auto *E = cast<Expr>(ParentItem.getStmt()); 173 const auto *DS = cast<DeclStmt>(TopItem.getStmt()); 178 const auto *NE = cast<CXXNewExpr>(TopItem.getStmt()); 183 const auto *RS = cast<ReturnStmt>(TopItem.getStmt()); 187 const auto *MTE = cast<MaterializeTemporaryExp [all...] |
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/ |
H A D | lfunc.h | 14 #define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \ 15 cast(int, sizeof(TValue)*((n)-1))) 17 #define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \ 18 cast(int, sizeof(TValue *)*((n)-1)))
|
H A D | lmem.h | 22 ** cast to 'void' avoids warnings of "value unused". 25 (cast(void, \ 26 (cast(size_t, (n)+1) > MAX_SIZET/(e)) ? (luaM_toobig(L), 0) : 0), \ 34 #define luaM_new(L,t) cast(t *, luaM_malloc(L, sizeof(t))) 36 cast(t *, luaM_reallocv(L, NULL, 0, n, sizeof(t))) 42 ((v)=cast(t *, luaM_growaux_(L,v,&(size),sizeof(t),limit,e))) 45 ((v)=cast(t *, luaM_reallocv(L, v, oldn, n, sizeof(t))))
|
H A D | lopcodes.h | 89 #define GET_OPCODE(i) (cast(OpCode, ((i)>>POS_OP) & MASK1(SIZE_OP,0))) 91 ((cast(Instruction, o)<<POS_OP)&MASK1(SIZE_OP,POS_OP)))) 93 #define getarg(i,pos,size) (cast(int, ((i)>>pos) & MASK1(size,0))) 95 ((cast(Instruction, v)<<pos)&MASK1(size,pos)))) 113 #define SETARG_sBx(i,b) SETARG_Bx((i),cast(unsigned int, (b)+MAXARG_sBx)) 116 #define CREATE_ABC(o,a,b,c) ((cast(Instruction, o)<<POS_OP) \ 117 | (cast(Instruction, a)<<POS_A) \ 118 | (cast(Instruction, b)<<POS_B) \ 119 | (cast(Instruction, c)<<POS_C)) 121 #define CREATE_ABx(o,a,bc) ((cast(Instructio [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
H A D | CoroInstr.h | 57 return cast<ConstantInt>(getArgOperand(IndexArg)); 60 // Methods to support type inquiry through isa, cast, and dyn_cast: 65 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); 72 // Methods to support type inquiry through isa, cast, and dyn_cast: 77 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); 99 // Methods to support type inquiry through isa, cast, and dyn_cast: 108 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); 121 : cast<AllocaInst>(Arg->stripPointerCasts()); 134 auto *Inst = cast<Instruction>(Arg); 173 Result.Resumers = cast<ConstantArra [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | IntrinsicInst.h | 42 /// This allows the standard isa/dyncast/cast functionality to work with calls 55 // Methods for support type inquiry through isa, cast, and dyn_cast: 62 return isa<CallInst>(V) && classof(cast<CallInst>(V)); 82 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); 102 return cast<DILocalVariable>(getRawVariable()); 106 return cast<DIExpression>(getRawExpression()); 110 return cast<MetadataAsValue>(getArgOperand(1))->getMetadata(); 114 return cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); 133 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); 149 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicIns [all...] |
H A D | Statepoint.h | 79 StatepointCall = isStatepoint(I) ? cast<CallBaseTy>(I) : nullptr; 113 return cast<ConstantInt>(getCall()->getArgOperand(FlagsPos)) 120 return cast<ConstantInt>(IDVal)->getZExtValue(); 127 cast<ConstantInt>(NumPatchBytesVal)->getZExtValue(); 158 auto *FTy = cast<FunctionType>( 159 cast<PointerType>(getCalledValue()->getType())->getElementType()); 166 return cast<ConstantInt>(NumCallArgsVal)->getZExtValue(); 200 return cast<ConstantInt>(NumGCTransitionArgs)->getZExtValue(); 222 return cast<ConstantInt>(NumVMSArgs)->getZExtValue(); 324 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicIns [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/ |
H A D | AbstractCallSite.cpp | 47 MDNode *OpMD = cast<MDNode>(Op.get()); 48 auto *CBCalleeIdxAsCM = cast<ConstantAsMetadata>(OpMD->getOperand(0)); 50 cast<ConstantInt>(CBCalleeIdxAsCM->getValue())->getZExtValue(); 61 // If the use is actually in a constant cast expression which itself 62 // has only one use, we look through the constant cast expression. 64 // cast expression and afterwards re-initializing CS accordingly. 103 MDNode *OpMD = cast<MDNode>(Op.get()); 104 auto *CBCalleeIdxAsCM = cast<ConstantAsMetadata>(OpMD->getOperand(0)); 106 cast<ConstantInt>(CBCalleeIdxAsCM->getValue())->getZExtValue(); 127 auto *OpAsCM = cast<ConstantAsMetadat [all...] |
H A D | Instruction.cpp | 101 cast<OverflowingBinaryOperator>(this)->setHasNoUnsignedWrap(b); 105 cast<OverflowingBinaryOperator>(this)->setHasNoSignedWrap(b); 109 cast<PossiblyExactOperator>(this)->setIsExact(b); 113 return cast<OverflowingBinaryOperator>(this)->hasNoUnsignedWrap(); 117 return cast<OverflowingBinaryOperator>(this)->hasNoSignedWrap(); 126 cast<OverflowingBinaryOperator>(this)->setHasNoUnsignedWrap(false); 127 cast<OverflowingBinaryOperator>(this)->setHasNoSignedWrap(false); 134 cast<PossiblyExactOperator>(this)->setIsExact(false); 138 cast<GetElementPtrInst>(this)->setIsInBounds(false); 146 return cast<PossiblyExactOperato [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | VPlanSLP.cpp | 59 return cast<VPInstruction>(V)->getUnderlyingInstr(); 63 Type *T = cast<VPInstruction>(V)->getUnderlyingInstr()->getType(); 80 cast<VPInstruction>(Op)->getUnderlyingInstr(); 91 cast<VPInstruction>(Operands[0])->getUnderlyingInstr(); 95 const Instruction *I = cast<VPInstruction>(Op)->getUnderlyingInstr(); 105 return cast<VPInstruction>(Op)->getParent() != &this->BB; 123 VPBasicBlock *Parent = cast<VPInstruction>(Operands[0])->getParent(); 125 auto *VPI = cast<VPInstruction>(&I); 140 return cast<LoadInst>(cast<VPInstructio [all...] |
/freebsd-11-stable/contrib/lua/src/ |
H A D | lmem.h | 31 (((sizeof(n) >= sizeof(size_t) && cast(size_t, (n)) + 1 > MAX_SIZET/(e)) \ 39 cast(char *, luaM_realloc_(L, (b), (on)*sizeof(char), (n)*sizeof(char))) 46 #define luaM_new(L,t) cast(t *, luaM_malloc(L, sizeof(t))) 48 cast(t *, luaM_reallocv(L, NULL, 0, n, sizeof(t))) 54 ((v)=cast(t *, luaM_growaux_(L,v,&(size),sizeof(t),limit,e))) 57 ((v)=cast(t *, luaM_reallocv(L, v, oldn, n, sizeof(t))))
|
H A D | lopcodes.h | 89 #define GET_OPCODE(i) (cast(OpCode, ((i)>>POS_OP) & MASK1(SIZE_OP,0))) 91 ((cast(Instruction, o)<<POS_OP)&MASK1(SIZE_OP,POS_OP)))) 93 #define getarg(i,pos,size) (cast(int, ((i)>>pos) & MASK1(size,0))) 95 ((cast(Instruction, v)<<pos)&MASK1(size,pos)))) 113 #define SETARG_sBx(i,b) SETARG_Bx((i),cast(unsigned int, (b)+MAXARG_sBx)) 116 #define CREATE_ABC(o,a,b,c) ((cast(Instruction, o)<<POS_OP) \ 117 | (cast(Instruction, a)<<POS_A) \ 118 | (cast(Instruction, b)<<POS_B) \ 119 | (cast(Instruction, c)<<POS_C)) 121 #define CREATE_ABx(o,a,bc) ((cast(Instructio [all...] |
H A D | lfunc.h | 14 #define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \ 15 cast(int, sizeof(TValue)*((n)-1))) 17 #define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \ 18 cast(int, sizeof(TValue *)*((n)-1)))
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/MC/ |
H A D | MCAsmBackend.cpp | 34 return createELFObjectWriter(cast<MCELFObjectTargetWriter>(std::move(TW)), OS, 37 return createMachObjectWriter(cast<MCMachObjectTargetWriter>(std::move(TW)), 41 cast<MCWinCOFFObjectTargetWriter>(std::move(TW)), OS); 43 return createWasmObjectWriter(cast<MCWasmObjectTargetWriter>(std::move(TW)), 47 cast<MCXCOFFObjectTargetWriter>(std::move(TW)), OS); 59 return createELFDwoObjectWriter(cast<MCELFObjectTargetWriter>(std::move(TW)),
|
H A D | MCFragment.cpp | 252 delete cast<MCAlignFragment>(this); 255 delete cast<MCDataFragment>(this); 258 delete cast<MCCompactEncodedInstFragment>(this); 261 delete cast<MCFillFragment>(this); 264 delete cast<MCRelaxableFragment>(this); 267 delete cast<MCOrgFragment>(this); 270 delete cast<MCDwarfLineAddrFragment>(this); 273 delete cast<MCDwarfCallFrameFragment>(this); 276 delete cast<MCLEBFragment>(this); 279 delete cast<MCBoundaryAlignFragmen [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | IdenticalExprChecker.cpp | 361 const CStyleCastExpr* CastExpr1 = cast<CStyleCastExpr>(Stmt1); 362 const CStyleCastExpr* CastExpr2 = cast<CStyleCastExpr>(Stmt2); 367 const ReturnStmt *ReturnStmt1 = cast<ReturnStmt>(Stmt1); 368 const ReturnStmt *ReturnStmt2 = cast<ReturnStmt>(Stmt2); 374 const ForStmt *ForStmt1 = cast<ForStmt>(Stmt1); 375 const ForStmt *ForStmt2 = cast<ForStmt>(Stmt2); 392 const DoStmt *DStmt1 = cast<DoStmt>(Stmt1); 393 const DoStmt *DStmt2 = cast<DoStmt>(Stmt2); 404 const WhileStmt *WStmt1 = cast<WhileStmt>(Stmt1); 405 const WhileStmt *WStmt2 = cast<WhileStm [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | FunctionComparator.cpp | 277 const auto *SeqR = cast<ConstantDataSequential>(R); 291 const APInt &LInt = cast<ConstantInt>(L)->getValue(); 292 const APInt &RInt = cast<ConstantInt>(R)->getValue(); 296 const APFloat &LAPF = cast<ConstantFP>(L)->getValueAPF(); 297 const APFloat &RAPF = cast<ConstantFP>(R)->getValueAPF(); 301 const ConstantArray *LA = cast<ConstantArray>(L); 302 const ConstantArray *RA = cast<ConstantArray>(R); 303 uint64_t NumElementsL = cast<ArrayType>(TyL)->getNumElements(); 304 uint64_t NumElementsR = cast<ArrayType>(TyR)->getNumElements(); 308 if (int Res = cmpConstants(cast<Constan [all...] |
/freebsd-11-stable/usr.sbin/rpcbind/tests/ |
H A D | Makefile | 8 CFLAGS+= -I${.CURDIR:H} -Wno-cast-qual
|
/freebsd-11-stable/contrib/nvi/common/ |
H A D | mem.h | 153 * The cast should be unnecessary, malloc(3) and friends return void *'s, 159 #define CALLOC(sp, p, cast, nmemb, size) { \ 160 if ((p = (cast)calloc(nmemb, size)) == NULL) \ 163 #define CALLOC_GOTO(sp, p, cast, nmemb, size) { \ 164 if ((p = (cast)calloc(nmemb, size)) == NULL) \ 167 #define CALLOC_NOMSG(sp, p, cast, nmemb, size) { \ 168 p = (cast)calloc(nmemb, size); \ 170 #define CALLOC_RET(sp, p, cast, nmemb, size) { \ 171 if ((p = (cast)calloc(nmemb, size)) == NULL) { \ 177 #define MALLOC(sp, p, cast, siz [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/ |
H A D | ASTStructuralEquivalence.cpp | 471 if (cast<BuiltinType>(T1)->getKind() != cast<BuiltinType>(T2)->getKind()) 477 cast<ComplexType>(T1)->getElementType(), 478 cast<ComplexType>(T2)->getElementType())) 485 cast<AdjustedType>(T1)->getOriginalType(), 486 cast<AdjustedType>(T2)->getOriginalType())) 492 cast<PointerType>(T1)->getPointeeType(), 493 cast<PointerType>(T2)->getPointeeType())) 499 cast<BlockPointerType>(T1)->getPointeeType(), 500 cast<BlockPointerTyp [all...] |
H A D | ParentMap.cpp | 37 PseudoObjectExpr *POE = cast<PseudoObjectExpr>(S); 57 BinaryConditionalOperator *BCO = cast<BinaryConditionalOperator>(S); 79 OpaqueValueExpr *OVE = cast<OpaqueValueExpr>(S); 93 if (Stmt *SubStmt = cast<CapturedStmt>(S)->getCapturedStmt()) { 157 } while (S && isa<Expr>(S) && cast<Expr>(S)->IgnoreParenImpCasts() != S); 191 BinaryOperator *BE = cast<BinaryOperator>(P); 197 return DirectChild == cast<ForStmt>(P)->getCond(); 199 return DirectChild == cast<WhileStmt>(P)->getCond(); 201 return DirectChild == cast<DoStmt>(P)->getCond(); 203 return DirectChild == cast<IfStm [all...] |
H A D | DeclFriend.cpp | 50 (cast<CXXRecordDecl>(DC)->getTemplateSpecializationKind())); 61 cast<CXXRecordDecl>(DC)->pushFriendDecl(FD); 75 return First ? cast<FriendDecl>(First) : nullptr;
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | BuiltinGCs.cpp | 77 const PointerType *PT = cast<PointerType>(Ty); 109 const PointerType *PT = cast<PointerType>(Ty);
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | Address.h | 44 return llvm::cast<llvm::PointerType>(getPointer()->getType()); 84 return llvm::cast<llvm::Constant>(Address::getPointer()); 100 return ConstantAddress(llvm::cast<llvm::Constant>(addr.getPointer()), 108 template <class U> inline U cast(CodeGen::Address addr) { function in namespace:clang
|