Home
last modified time | relevance | path

Searched refs:getArg (Results 1 – 25 of 156) sorted by relevance

1234567

/external/clang/unittests/Tooling/
DFixItTest.cpp42 Expr *P0 = CE->getArg(0); in TEST()
43 Expr *P1 = CE->getArg(1); in TEST()
61 Expr *P0 = CE->getArg(0); in TEST()
62 Expr *P1 = CE->getArg(1); in TEST()
72 Expr *P0 = CE->getArg(0); in TEST()
73 Expr *P1 = CE->getArg(1); in TEST()
90 Expr *P0 = CE->getArg(0); in TEST()
96 Expr *P1 = CE->getArg(1); in TEST()
105 Expr *P0 = CE->getArg(0); in TEST()
109 Expr *P1 = CE->getArg(1); in TEST()
[all …]
/external/clang/lib/CodeGen/
DCGBuiltin.cpp90 assert(E->getArg(0)->getType()->isPointerType()); in MakeBinaryAtomicValue()
92 E->getArg(0)->getType()->getPointeeType())); in MakeBinaryAtomicValue()
93 assert(CGF.getContext().hasSameUnqualifiedType(T, E->getArg(1)->getType())); in MakeBinaryAtomicValue()
95 llvm::Value *DestPtr = CGF.EmitScalarExpr(E->getArg(0)); in MakeBinaryAtomicValue()
105 Args[1] = CGF.EmitScalarExpr(E->getArg(1)); in MakeBinaryAtomicValue()
115 Value *Val = CGF.EmitScalarExpr(E->getArg(0)); in EmitNontemporalStore()
116 Value *Address = CGF.EmitScalarExpr(E->getArg(1)); in EmitNontemporalStore()
119 Val = CGF.EmitToMemory(Val, E->getArg(0)->getType()); in EmitNontemporalStore()
122 LValue LV = CGF.MakeNaturalAlignAddrLValue(BC, E->getArg(0)->getType()); in EmitNontemporalStore()
129 Value *Address = CGF.EmitScalarExpr(E->getArg(0)); in EmitNontemporalLoad()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/AsmPrinter/
DDwarfExpression.cpp284 uint64_t Offset = Op->getArg(0); in addMachineRegExpression()
296 uint64_t Offset = Op->getArg(0); in addMachineRegExpression()
325 assert(Op->getArg(0) == 1 && in beginEntryValueExpression()
380 addBReg(OpNum - dwarf::DW_OP_breg0, Op->getArg(0)); in addExpression()
386 unsigned SizeInBits = Op->getArg(1); in addExpression()
387 unsigned FragmentOffset = Op->getArg(0); in addExpression()
418 emitUnsigned(Op->getArg(0)); in addExpression()
447 emitConstu(Op->getArg(0)); in addExpression()
450 unsigned BitSize = Op->getArg(0); in addExpression()
451 dwarf::TypeKind Encoding = static_cast<dwarf::TypeKind>(Op->getArg(1)); in addExpression()
[all …]
DDebugHandlerBase.cpp47 int Value = Op->getArg(0); in extractFromMachineInstruction()
63 Offset += Op->getArg(0); in extractFromMachineInstruction()
66 Location.FragmentInfo = {Op->getArg(1), Op->getArg(0)}; in extractFromMachineInstruction()
/external/clang/lib/Edit/
DRewriteObjCFoundationAPI.cpp67 const Expr *Arg = Msg->getArg(0)->IgnoreParenImpCasts(); in rewriteObjCRedundantCallWithLiteral()
87 Msg->getArg(0)->getSourceRange()); in rewriteObjCRedundantCallWithLiteral()
191 SourceRange ArgRange = Msg->getArg(0)->getSourceRange(); in rewriteToSubscriptGetCommon()
239 SourceRange Arg0Range = Msg->getArg(0)->getSourceRange(); in rewriteToArraySubscriptSet()
240 SourceRange Arg1Range = Msg->getArg(1)->getSourceRange(); in rewriteToArraySubscriptSet()
273 SourceRange Arg0Range = Msg->getArg(0)->getSourceRange(); in rewriteToDictionarySubscriptSet()
274 SourceRange Arg1Range = Msg->getArg(1)->getSourceRange(); in rewriteToDictionarySubscriptSet()
401 objectifyExpr(Msg->getArg(0), commit); in rewriteToArrayLiteral()
402 SourceRange ArgRange = Msg->getArg(0)->getSourceRange(); in rewriteToArrayLiteral()
412 const Expr *SentinelExpr = Msg->getArg(Msg->getNumArgs() - 1); in rewriteToArrayLiteral()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DPthreadLockChecker.cpp95 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), in REGISTER_LIST_WITH_PROGRAMSTATE()
100 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), in REGISTER_LIST_WITH_PROGRAMSTATE()
105 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), in REGISTER_LIST_WITH_PROGRAMSTATE()
110 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), in REGISTER_LIST_WITH_PROGRAMSTATE()
116 ReleaseLock(C, CE, state->getSVal(CE->getArg(0), LCtx)); in REGISTER_LIST_WITH_PROGRAMSTATE()
119 DestroyLock(C, CE, state->getSVal(CE->getArg(0), LCtx)); in REGISTER_LIST_WITH_PROGRAMSTATE()
121 InitLock(C, CE, state->getSVal(CE->getArg(0), LCtx)); in REGISTER_LIST_WITH_PROGRAMSTATE()
150 report->addRange(CE->getArg(0)->getSourceRange()); in AcquireLock()
212 Report->addRange(CE->getArg(0)->getSourceRange()); in ReleaseLock()
236 report->addRange(CE->getArg(0)->getSourceRange()); in ReleaseLock()
[all …]
DCStringSyntaxChecker.cpp62 sameDecl(CE->getArg(0), WithArg)); in isStrlen()
106 const Expr *DstArg = CE->getArg(0); in containsBadStrncatPattern()
107 const Expr *SrcArg = CE->getArg(1); in containsBadStrncatPattern()
108 const Expr *LenArg = CE->getArg(2); in containsBadStrncatPattern()
142 const Expr *DstArg = CE->getArg(0); in VisitCallExpr()
143 const Expr *LenArg = CE->getArg(2); in VisitCallExpr()
DStreamChecker.cpp246 if (!CheckNullStream(state->getSVal(CE->getArg(3), C.getLocationContext()), in Fread()
253 if (!CheckNullStream(state->getSVal(CE->getArg(3), C.getLocationContext()), in Fwrite()
260 if (!(state = CheckNullStream(state->getSVal(CE->getArg(0), in Fseek()
264 SVal Whence = state->getSVal(CE->getArg(2), C.getLocationContext()); in Fseek()
287 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Ftell()
294 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Rewind()
301 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Fgetpos()
308 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Fsetpos()
315 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Clearerr()
322 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Feof()
[all …]
DUnixAPIChecker.cpp99 const Expr *Arg = CE->getArg(2); in CheckOpen()
110 CE->getArg(3)->getSourceRange()); in CheckOpen()
130 const Expr *oflagsEx = CE->getArg(1); in CheckOpen()
181 state->getSVal(CE->getArg(0), C.getLocationContext()).getAsRegion(); in CheckPthreadOnce()
204 report->addRange(CE->getArg(0)->getSourceRange()); in CheckPthreadOnce()
267 const Expr *arg = CE->getArg(sizeArg); in BasicAllocationCheck()
295 const Expr *arg = CE->getArg(i); in CheckCallocZero()
DGenericTaintChecker.cpp352 const Expr* Arg = CE->getArg(ArgNum); in propagateFromPre()
461 if ((IsTainted = isTaintedOrPointsToTainted(CE->getArg(i), State, C))) in process()
469 if ((IsTainted = isTaintedOrPointsToTainted(CE->getArg(ArgNum), State, C))) in process()
487 const Expr *Arg = CE->getArg(i); in process()
521 if (State->isTainted(CE->getArg(0), C.getLocationContext()) || in preFscanf()
522 isStdin(CE->getArg(0), C)) { in preFscanf()
540 SourceLocation DomLoc = CE->getArg(0)->getExprLoc(); in postSocket()
560 const Expr* Arg = CE->getArg(i); in postScanf()
661 return generateReportIfTainted(CE->getArg(ArgNum), in checkUncontrolledFormatString()
687 return generateReportIfTainted(CE->getArg(ArgNum), MsgSanitizeSystemArgs, C); in checkSystemCall()
[all …]
DObjCContainersChecker.cpp97 addSizeInfo(CE, CE->getArg(2), C); in checkPostStmt()
102 addSizeInfo(CE->getArg(0), CE, C); in checkPostStmt()
119 const Expr *ArrayExpr = CE->getArg(0); in checkPreStmt()
130 const Expr *IdxExpr = CE->getArg(1); in checkPreStmt()
DCStringChecker.cpp1108 const Expr *Dest = CE->getArg(0); in evalMemcpy()
1111 evalCopyCommon(C, CE, state, CE->getArg(2), Dest, CE->getArg(1), true); in evalMemcpy()
1120 const Expr *Dest = CE->getArg(0); in evalMempcpy()
1123 evalCopyCommon(C, CE, state, CE->getArg(2), Dest, CE->getArg(1), true, true); in evalMempcpy()
1132 const Expr *Dest = CE->getArg(0); in evalMemmove()
1135 evalCopyCommon(C, CE, state, CE->getArg(2), Dest, CE->getArg(1)); in evalMemmove()
1144 CE->getArg(2), CE->getArg(1), CE->getArg(0)); in evalBcopy()
1154 const Expr *Left = CE->getArg(0); in evalMemcmp()
1155 const Expr *Right = CE->getArg(1); in evalMemcmp()
1156 const Expr *Size = CE->getArg(2); in evalMemcmp()
[all …]
DExprInspectionChecker.cpp78 const Expr *Assertion = CE->getArg(0); in getArgumentValueString()
150 SVal V = C.getSVal(CE->getArg(0)); in analyzerExplain()
160 auto MR = dyn_cast_or_null<SubRegion>(C.getSVal(CE->getArg(0)).getAsRegion()); in analyzerGetExtent()
174 SVal Val = C.getSVal(CE->getArg(0)); in analyzerWarnOnDeadSymbol()
DObjCContainersASTChecker.cpp109 Arg = CE->getArg(ArgNum)->IgnoreParenCasts(); in VisitCallExpr()
117 Arg = CE->getArg(ArgNum)->IgnoreParenCasts(); in VisitCallExpr()
121 Arg = CE->getArg(ArgNum)->IgnoreParenCasts(); in VisitCallExpr()
DMacOSXAPIChecker.cpp61 state->getSVal(CE->getArg(0), C.getLocationContext()).getAsRegion(); in CheckDispatchOnce()
96 report->addRange(CE->getArg(0)->getSourceRange()); in CheckDispatchOnce()
/external/tensorflow/tensorflow/compiler/mlir/quantization/tensorflow/passes/
Dpost_quantize.cc76 auto input_op = op.getArg().getDefiningOp(); in matchAndRewrite()
83 if (!q.getArg().getDefiningOp()) return failure(); in matchAndRewrite()
92 QuantizedType::getQuantizedElementType(q.getArg().getType())) { in matchAndRewrite()
95 op, op.getResult().getType(), q.getArg()); in matchAndRewrite()
99 op.replaceAllUsesWith(q.getArg()); in matchAndRewrite()
Dquantize.cc145 op->getUsers().begin()->getResult(0).replaceAllUsesWith(op.getArg()); in matchAndRewrite()
201 auto dq_arg_type = dq_op.getArg().getType().cast<TensorType>(); in matchAndRewrite()
205 dq_op.getArg()); in matchAndRewrite()
299 auto avg_pool_op = q_op.getArg().getDefiningOp<TF::AvgPoolOp>(); in matchAndRewrite()
306 auto dq_arg_type = dq_op.getArg().getType().cast<TensorType>(); in matchAndRewrite()
322 dq_op.getArg()); in matchAndRewrite()
/external/llvm/lib/CodeGen/AsmPrinter/
DDwarfExpression.cpp219 unsigned OffsetInBits = I->getArg(0); in AddMachineRegExpression()
220 unsigned SizeInBits = I->getArg(1); in AddMachineRegExpression()
231 unsigned Offset = I->getArg(0); in AddMachineRegExpression()
263 unsigned OffsetInBits = I->getArg(0); in AddExpression()
264 unsigned SizeInBits = I->getArg(1); in AddExpression()
270 EmitUnsigned(I->getArg(0)); in AddExpression()
275 EmitUnsigned(I->getArg(0)); in AddExpression()
/external/bcc/src/cc/frontends/clang/
Db_frontend_action.cc317 ProbeChecker checker = ProbeChecker(Call->getArg(1), ptregs_, true, in VisitCallExpr()
414 const Expr *E = Call->getArg(2)->IgnoreParenCasts(); in VisitCallExpr()
882 … string args = rewriter_.getRewrittenText(expansionRange(SourceRange(GET_BEGINLOC(Call->getArg(0)), in VisitCallExpr()
883 … GET_ENDLOC(Call->getArg(Call->getNumArgs() - 1))))); in VisitCallExpr()
902 … string arg0 = rewriter_.getRewrittenText(expansionRange(Call->getArg(0)->getSourceRange())); in VisitCallExpr()
903 … string arg1 = rewriter_.getRewrittenText(expansionRange(Call->getArg(1)->getSourceRange())); in VisitCallExpr()
917 … string arg0 = rewriter_.getRewrittenText(expansionRange(Call->getArg(0)->getSourceRange())); in VisitCallExpr()
921 … increment_value = rewriter_.getRewrittenText(expansionRange(Call->getArg(1)->getSourceRange())); in VisitCallExpr()
944 … string arg0 = rewriter_.getRewrittenText(expansionRange(Call->getArg(0)->getSourceRange())); in VisitCallExpr()
945 …g args_other = rewriter_.getRewrittenText(expansionRange(SourceRange(GET_BEGINLOC(Call->getArg(1)), in VisitCallExpr()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/ir/
DQuantOps.cc46 auto srcScastOp = getArg().getDefiningOp<StorageCastOp>(); in fold()
47 if (!srcScastOp || srcScastOp.getArg().getType() != getType()) in fold()
49 return srcScastOp.getArg(); in fold()
102 auto tensorArg = getArg().getType().dyn_cast<TensorType>(); in verify()
DConvertConst.cc54 if (!matchPattern(qbarrier.getArg(), m_Constant(&value))) { in matchAndRewrite()
75 qbarrier.getArg().getType())) { in matchAndRewrite()
94 {qbarrier.getArg().getDefiningOp()->getLoc(), qbarrier.getLoc()}); in matchAndRewrite()
/external/clang/lib/Sema/
DSemaChecking.cpp66 SourceRange range(call->getArg(desiredArgCount)->getLocStart(), in checkArgCount()
67 call->getArg(argCount - 1)->getLocEnd()); in checkArgCount()
71 << call->getArg(1)->getSourceRange(); in checkArgCount()
81 Expr *ValArg = TheCall->getArg(0); in SemaBuiltinAnnotation()
90 Expr *StrArg = TheCall->getArg(1)->IgnoreParenCasts(); in SemaBuiltinAnnotation()
108 ExprResult Arg(TheCall->getArg(0)); in SemaBuiltinAddressof()
124 Expr *Arg = TheCall->getArg(I); in SemaBuiltinOverflow()
137 Expr *Arg = TheCall->getArg(2); in SemaBuiltinOverflow()
158 const Expr *SizeArg = TheCall->getArg(SizeIdx); in SemaBuiltinMemChkCall()
159 const Expr *DstSizeArg = TheCall->getArg(DstSizeIdx); in SemaBuiltinMemChkCall()
[all …]
/external/dagger2/javatests/dagger/functional/assisted/
DAssistedFactoryDuplicatedParamNamesTest.java46 String getArg() { in getArg() method in AssistedFactoryDuplicatedParamNamesTest.Foo
79 assertThat(foo.getArg()).isEqualTo(str); in duplicatedParameterNames_doesNotConflict()
/external/clang/utils/TableGen/
DNeonEmitter.cpp1464 std::string Op = cast<StringInit>(DI->getArg(0))->getAsUnquotedString(); in emitDagOp()
1468 emitDagArg(DI->getArg(1), DI->getArgName(1)); in emitDagOp()
1473 emitDagArg(DI->getArg(1), DI->getArgName(1)); in emitDagOp()
1475 emitDagArg(DI->getArg(2), DI->getArgName(2)); in emitDagOp()
1486 emitDagArg(DI->getArg(I + 1), DI->getArgName(I + 1)); in emitDagCall()
1493 if (StringInit *SI = dyn_cast<StringInit>(DI->getArg(0))) in emitDagCall()
1496 N = emitDagArg(DI->getArg(0), "").second; in emitDagCall()
1519 DI->getArg(DI->getNumArgs() - 1), DI->getArgName(DI->getNumArgs() - 1)); in emitDagCast()
1536 StringInit *SI = dyn_cast<StringInit>(DI->getArg(ArgIdx)); in emitDagCast()
1611 int64_t VectorSize = cast<IntInit>(Expr->getArg(0))->getValue(); in emitDagShuffle()
[all …]
/external/swiftshader/third_party/subzero/src/
DIceTargetLoweringX8664.cpp706 ID, getConstantMemoryOrder(Intrin->getArg(1)))) { in doLoadOpt()
709 LoadSrc = formMemoryOperand(Intrin->getArg(0), LoadDest->getType(), in doLoadOpt()
2241 Operand *Arg = Instr->getArg(i); in lowerCall()
3328 ID, getConstantMemoryOrder(Instr->getArg(3)), in lowerIntrinsic()
3329 getConstantMemoryOrder(Instr->getArg(4)))) { in lowerIntrinsic()
3334 Operand *PtrToMem = legalize(Instr->getArg(0)); in lowerIntrinsic()
3335 Operand *Expected = legalize(Instr->getArg(1)); in lowerIntrinsic()
3336 Operand *Desired = legalize(Instr->getArg(2)); in lowerIntrinsic()
3344 ID, getConstantMemoryOrder(Instr->getArg(0)))) { in lowerIntrinsic()
3360 Operand *ByteSize = Instr->getArg(0); in lowerIntrinsic()
[all …]

1234567