HomeSort by relevance Sort by last modified time
    Searched full:cgf (Results 26 - 50 of 106) sorted by null

12 3 4 5

  /external/clang/lib/CodeGen/
CGDeclCXX.cpp 26 static void EmitDeclInit(CodeGenFunction &CGF, const VarDecl &D,
33 LValue lv = CGF.MakeAddrLValue(DeclPtr, type);
36 switch (CGF.getEvaluationKind(type)) {
38 CodeGenModule &CGM = CGF.CGM;
40 CGM.getObjCRuntime().EmitObjCGlobalAssign(CGF, CGF.EmitScalarExpr(Init),
43 CGM.getObjCRuntime().EmitObjCWeakAssign(CGF, CGF.EmitScalarExpr(Init),
46 CGF.EmitScalarInit(Init, &D, lv, false);
50 CGF.EmitComplexExprIntoLValue(Init, lv, /*isInit*/ true)
    [all...]
CGOpenMPRuntime.h 57 virtual void Enter(CodeGenFunction &CGF) {}
58 virtual void Exit(CodeGenFunction &CGF) {}
72 static void CallbackFn(intptr_t CodeGen, CodeGenFunction &CGF,
74 return (*reinterpret_cast<Callable *>(CodeGen))(CGF, Action);
88 void operator()(CodeGenFunction &CGF) const;
386 llvm::Value *emitUpdateLocation(CodeGenFunction &CGF, SourceLocation Loc,
425 virtual Address emitThreadIDAddress(CodeGenFunction &CGF, SourceLocation Loc);
429 llvm::Value *getThreadID(CodeGenFunction &CGF, SourceLocation Loc);
449 void emitThreadPrivateVarInit(CodeGenFunction &CGF, Address VDAddr,
490 TaskResultTy emitTaskInit(CodeGenFunction &CGF, SourceLocation Loc
    [all...]
CGBlocks.cpp 263 CodeGenFunction *CGF,
289 return CGM.EmitConstantInit(*var, CGF);
321 static void computeBlockInfo(CodeGenModule &CGM, CodeGenFunction *CGF,
348 assert(CGF && CGF->CurFuncDecl && isa<CXXMethodDecl>(CGF->CurFuncDecl) &&
350 QualType thisType = cast<CXXMethodDecl>(CGF->CurFuncDecl)->getThisType(C);
384 if (llvm::Constant *constant = tryCaptureAsConstant(CGM, CGF, variable)) {
562 static void enterBlockScope(CodeGenFunction &CGF, BlockDecl *block) {
563 assert(CGF.HaveInsertPoint())
    [all...]
CGObjCGNU.cpp 461 llvm::Value *GetSelector(CodeGenFunction &CGF, Selector Sel,
474 virtual llvm::Value *GetClassNamed(CodeGenFunction &CGF,
480 virtual llvm::Value *LookupIMP(CodeGenFunction &CGF,
489 virtual llvm::Value *LookupIMPSuper(CodeGenFunction &CGF,
514 GenerateMessageSend(CodeGenFunction &CGF, ReturnValueSlot Return,
520 GenerateMessageSendSuper(CodeGenFunction &CGF, ReturnValueSlot Return,
526 llvm::Value *GetClass(CodeGenFunction &CGF,
528 llvm::Value *GetSelector(CodeGenFunction &CGF, Selector Sel) override;
529 Address GetAddrOfSelector(CodeGenFunction &CGF, Selector Sel) override;
530 llvm::Value *GetSelector(CodeGenFunction &CGF,
    [all...]
CGCall.cpp     [all...]
TargetInfo.cpp 90 Address ABIInfo::EmitMSVAArg(CodeGenFunction &CGF, Address VAListAddr,
241 static llvm::Value *emitRoundPointerUpToAlignment(CodeGenFunction &CGF,
246 PtrAsInt = CGF.Builder.CreatePtrToInt(PtrAsInt, CGF.IntPtrTy);
247 PtrAsInt = CGF.Builder.CreateAdd(PtrAsInt,
248 llvm::ConstantInt::get(CGF.IntPtrTy, Align.getQuantity() - 1));
249 PtrAsInt = CGF.Builder.CreateAnd(PtrAsInt,
250 llvm::ConstantInt::get(CGF.IntPtrTy, -Align.getQuantity()));
251 PtrAsInt = CGF.Builder.CreateIntToPtr(PtrAsInt,
271 static Address emitVoidPtrDirectVAArg(CodeGenFunction &CGF,
    [all...]
CGExprConstant.cpp 39 CodeGenFunction *CGF;
50 static llvm::Constant *BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF,
52 static llvm::Constant *BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF,
56 ConstStructBuilder(CodeGenModule &CGM, CodeGenFunction *CGF)
57 : CGM(CGM), CGF(CGF), Packed(false),
394 Field->getType(), CGF);
488 CGM.EmitConstantValueForMemory(FieldValue, Field->getType(), CGF);
562 CodeGenFunction *CGF,
566 ConstStructBuilder Builder(CGM, CGF);
    [all...]
CGDecl.cpp 432 void Emit(CodeGenFunction &CGF, Flags flags) override {
437 CGF.emitDestroy(addr, type, destroyer, useEHCleanupForArray);
451 void Emit(CodeGenFunction &CGF, Flags flags) override {
458 llvm::BasicBlock *RunDtorBB = CGF.createBasicBlock("nrvo.unused");
459 SkipDtorBB = CGF.createBasicBlock("nrvo.skipdtor");
461 CGF.Builder.CreateFlagLoad(NRVOFlag, "nrvo.val");
462 CGF.Builder.CreateCondBr(DidNRVO, SkipDtorBB, RunDtorBB);
463 CGF.EmitBlock(RunDtorBB);
466 CGF.EmitCXXDestructorCall(Dtor, Dtor_Complete,
471 if (NRVO) CGF.EmitBlock(SkipDtorBB)
    [all...]
CGCUDARuntime.h 50 virtual RValue EmitCUDAKernelCallExpr(CodeGenFunction &CGF,
55 virtual void emitDeviceStub(CodeGenFunction &CGF, FunctionArgList &Args) = 0;
CGOpenCLRuntime.h 42 /// an entry to CGF's LocalDeclMap for D. The base class does this using
44 virtual void EmitWorkGroupLocalVarDecl(CodeGenFunction &CGF,
CGExpr.cpp 199 pushTemporaryCleanup(CodeGenFunction &CGF, const MaterializeTemporaryExpr *M,
237 CleanupKind = CGF.getARCCleanupKind();
247 CGF.pushDestroy(CleanupKind, ReferenceTemporary,
251 CGF.pushLifetimeExtendedDestroy(CleanupKind, ReferenceTemporary,
282 CleanupFn = CodeGenFunction(CGF.CGM).generateDestroyHelper(
284 CodeGenFunction::destroyCXXObject, CGF.getLangOpts().Exceptions,
286 CleanupArg = llvm::Constant::getNullValue(CGF.Int8PtrTy);
288 CleanupFn = CGF.CGM.getAddrOfCXXStructor(ReferenceTemporaryDtor,
292 CGF.CGM.getCXXABI().registerGlobalDtor(
293 CGF, *cast<VarDecl>(M->getExtendingDecl()), CleanupFn, CleanupArg)
    [all...]
CGDebugInfo.h 542 ApplyDebugLocation(CodeGenFunction &CGF, bool DefaultToEmpty,
546 CodeGenFunction *CGF;
550 ApplyDebugLocation(CodeGenFunction &CGF, SourceLocation TemporaryLocation);
551 ApplyDebugLocation(CodeGenFunction &CGF, const Expr *E);
552 ApplyDebugLocation(CodeGenFunction &CGF, llvm::DebugLoc Loc);
553 ApplyDebugLocation(ApplyDebugLocation &&Other) : CGF(Other.CGF) {
554 Other.CGF = nullptr;
570 static ApplyDebugLocation CreateArtificial(CodeGenFunction &CGF) {
571 return ApplyDebugLocation(CGF, false, SourceLocation())
    [all...]
CGVTables.cpp 83 static RValue PerformReturnAdjustment(CodeGenFunction &CGF,
96 AdjustNull = CGF.createBasicBlock("adjust.null");
97 AdjustNotNull = CGF.createBasicBlock("adjust.notnull");
98 AdjustEnd = CGF.createBasicBlock("adjust.end");
100 llvm::Value *IsNull = CGF.Builder.CreateIsNull(ReturnValue);
101 CGF.Builder.CreateCondBr(IsNull, AdjustNull, AdjustNotNull);
102 CGF.EmitBlock(AdjustNotNull);
106 auto ClassAlign = CGF.CGM.getClassPointerAlignment(ClassDecl);
107 ReturnValue = CGF.CGM.getCXXABI().performReturnAdjustment(CGF,
    [all...]
CGOpenCLRuntime.cpp 27 void CGOpenCLRuntime::EmitWorkGroupLocalVarDecl(CodeGenFunction &CGF,
29 return CGF.EmitStaticVarDecl(D, llvm::GlobalValue::InternalLinkage);
EHScopeStack.h 60 static saved_type save(CodeGenFunction &CGF, type value) { return value; }
61 static type restore(CodeGenFunction &CGF, saved_type value) { return value; }
192 virtual void Emit(CodeGenFunction &CGF, Flags flags) = 0;
203 T restore(CodeGenFunction &CGF, llvm::index_sequence<Is...>) {
206 return T{DominatingValue<As>::restore(CGF, std::get<Is>(Saved))...};
209 void Emit(CodeGenFunction &CGF, Flags flags) override {
210 restore(CGF, llvm::index_sequence_for<As...>()).Emit(CGF, flags);
CGBuiltin.cpp 62 static Value *EmitToInt(CodeGenFunction &CGF, llvm::Value *V,
64 V = CGF.EmitToMemory(V, T);
67 return CGF.Builder.CreatePtrToInt(V, IntType);
73 static Value *EmitFromInt(CodeGenFunction &CGF, llvm::Value *V,
75 V = CGF.EmitFromMemory(V, T);
78 return CGF.Builder.CreateIntToPtr(V, ResultType);
86 static Value *MakeBinaryAtomicValue(CodeGenFunction &CGF,
91 assert(CGF.getContext().hasSameUnqualifiedType(T,
93 assert(CGF.getContext().hasSameUnqualifiedType(T, E->getArg(1)->getType()));
95 llvm::Value *DestPtr = CGF.EmitScalarExpr(E->getArg(0))
    [all...]
TargetInfo.h 96 virtual bool initDwarfEHRegSizeTable(CodeGen::CodeGenFunction &CGF,
106 virtual llvm::Value *decodeReturnAddress(CodeGen::CodeGenFunction &CGF,
116 virtual llvm::Value *encodeReturnAddress(CodeGen::CodeGenFunction &CGF,
126 virtual llvm::Type *adjustInlineAsmType(CodeGen::CodeGenFunction &CGF,
134 CodeGen::CodeGenFunction &CGF, CodeGen::LValue ReturnValue,
CGCXX.cpp 263 static llvm::Value *BuildAppleKextVirtualCall(CodeGenFunction &CGF,
267 assert(!CGF.CGM.getTarget().getCXXABI().isMicrosoft() &&
270 CodeGenModule &CGM = CGF.CGM;
273 VTable = CGF.Builder.CreateBitCast(VTable, Ty);
281 CGF.Builder.CreateConstInBoundsGEP1_64(VTable, VTableIndex, "vfnkxt");
282 return CGF.Builder.CreateAlignedLoad(VFuncPtr, CGF.PointerAlignInBytes);
CGBuilder.h 29 explicit CGBuilderInserter(CodeGenFunction *CGF) : CGF(CGF) {}
37 CodeGenFunction *CGF = nullptr;
ABIInfo.h 91 virtual CodeGen::Address EmitVAArg(CodeGen::CodeGenFunction &CGF,
99 virtual CodeGen::Address EmitMSVAArg(CodeGen::CodeGenFunction &CGF,
CGCall.h 118 void allocateArgumentMemory(CodeGenFunction &CGF);
120 void freeArgumentMemory(CodeGenFunction &CGF) const;
CodeGenFunction.cpp 267 static void EmitIfUsed(CodeGenFunction &CGF, llvm::BasicBlock *BB) {
270 return CGF.CurFn->getBasicBlockList().push_back(BB);
    [all...]
CGDebugInfo.cpp 61 ApplyDebugLocation::ApplyDebugLocation(CodeGenFunction &CGF,
63 : CGF(&CGF) {
67 ApplyDebugLocation::ApplyDebugLocation(CodeGenFunction &CGF,
70 : CGF(&CGF) {
76 auto *DI = CGF->getDebugInfo();
78 CGF = nullptr;
82 OriginalLocation = CGF->Builder.getCurrentDebugLocation();
84 DI->EmitLocation(CGF->Builder, TemporaryLocation)
    [all...]
  /external/llvm/test/CodeGen/SystemZ/
int-cmp-05.ll 60 ; CHECK: cgf %r2, 0(%r3)
74 ; CHECK-NOT: cgf
86 ; CHECK: cgf %r2, 0(%r3)
100 ; CHECK: cgf %r2, 0(%r3)
111 ; Check the high end of the aligned CGF range.
114 ; CHECK: cgf %r2, 524284(%r3)
131 ; CHECK: cgf %r2, 0(%r3)
143 ; Check the high end of the negative aligned CGF range.
146 ; CHECK: cgf %r2, -4(%r3)
158 ; Check the low end of the CGF range
    [all...]
  /external/valgrind/none/tests/s390x/
comp-1.c 2 cr, cgr, cgfr, c, cg, cgf, cfi, cgfi
191 run_scomp_reg_mem(cgf, int32_t);
192 /* Special cases for cgf */
193 SCOMP_REG_MEM(cgf, INT64_MIN, INT32_MIN, int32_t);
194 SCOMP_REG_MEM(cgf, INT64_MIN, INT32_MAX, int32_t);
195 SCOMP_REG_MEM(cgf, INT64_MAX, INT32_MIN, int32_t);
196 SCOMP_REG_MEM(cgf, INT64_MAX, INT32_MAX, int32_t);

Completed in 279 milliseconds

12 3 4 5