Lines Matching full:cgf
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);
573 CodeGenFunction *CGF,
575 ConstStructBuilder Builder(CGM, CGF);
584 CodeGenFunction *CGF,
587 ConstStructBuilder Builder(CGM, CGF);
608 CodeGenFunction *CGF;
611 ConstExprEmitter(CodeGenModule &cgm, CodeGenFunction *cgf)
612 : CGM(cgm), CGF(cgf), VMContext(cgm.getLLVMContext()) {
646 CGM.EmitExplicitCastExprType(ECE, CGF);
648 llvm::Constant *C = CGM.EmitConstantExpr(subExpr, subExpr->getType(), CGF);
795 fillC = CGM.EmitConstantExpr(filler, filler->getType(), CGF);
812 llvm::Constant *C = CGM.EmitConstantExpr(Init, Init->getType(), CGF);
837 return ConstStructBuilder::BuildStruct(CGM, CGF, ILE);
882 fillC = CGM.EmitConstantExpr(filler, filler->getType(), CGF);
897 Elts[i] = CGM.EmitConstantExpr(Init, Init->getType(), CGF);
918 return ConstStructBuilder::BuildStruct(CGM, CGF, this,
926 CGM.EmitConstantExpr(E->getBase(), E->getType(), CGF),
1025 CLE->getType(), CGF);
1052 if (CGF) {
1053 LValue Res = CGF->EmitPredefinedLValue(cast<PredefinedExpr>(E));
1062 assert(CGF && "Invalid address of label expression outside function.");
1064 CGF->GetAddrOfLabel(cast<AddrLabelExpr>(E)->getLabel());
1087 if (CGF)
1088 FunctionName = CGF->CurFn->getName();
1177 EltInit = CGM.EmitConstantExpr(Init, Field->getType(), CGF);
1197 CodeGenFunction *CGF) {
1215 return EmitConstantValueForMemory(*Value, D.getType(), CGF);
1229 llvm::Constant* C = ConstExprEmitter(*this, CGF).Visit(const_cast<Expr*>(E));
1239 CodeGenFunction *CGF) {
1251 C = EmitConstantValue(Result.Val, DestType, CGF);
1253 C = ConstExprEmitter(*this, CGF).Visit(const_cast<Expr*>(E));
1264 CodeGenFunction *CGF) {
1268 auto *Inner = EmitConstantValue(Value, InnerType, CGF);
1297 return ConstExprEmitter(*this, CGF).Visit(
1301 C = ConstExprEmitter(*this, CGF).EmitLValue(LVBase).getPointer();
1396 llvm::Constant *LHS = EmitConstantExpr(LHSExpr, LHSExpr->getType(), CGF);
1397 llvm::Constant *RHS = EmitConstantExpr(RHSExpr, RHSExpr->getType(), CGF);
1412 return ConstStructBuilder::BuildStruct(*this, CGF, Value, DestType);
1422 CAT->getElementType(), CGF);
1441 CAT->getElementType(), CGF);
1474 CodeGenFunction *CGF) {
1475 llvm::Constant *C = EmitConstantValue(Value, DestType, CGF);