| /freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/ |
| H A D | CIRGenerator.cpp | 47 void CIRGenerator::Initialize(ASTContext &astContext) { in Initialize() argument 50 this->astContext = &astContext; in Initialize() 63 *mlirContext.get(), astContext, codeGenOpts, diags); in Initialize() 66 llvm::DataLayout(astContext.getTargetInfo().getDataLayoutString()); in Initialize() 86 void CIRGenerator::HandleTranslationUnit(ASTContext &astContext) { in HandleTranslationUnit() argument 148 if (astContext->getTargetInfo().getCXXABI().isMicrosoft()) in HandleTagDeclDefinition() 151 if (astContext->getLangOpts().OpenMP) in HandleTagDeclDefinition()
|
| H A D | CIRGenRecordLayoutBuilder.cpp | 91 return astContext.getTargetInfo().getABI().starts_with("aapcs"); in isAAPCS() 95 return astContext.toCharUnitsFromBits(bitOffset); in bitsToCharUnits() 127 astContext.getCharWidth(), in getCharType() 147 unsigned alignedBits = llvm::alignTo(numBits, astContext.getCharWidth()); in getBitfieldStorageType() 152 return cir::ArrayType::get(type, alignedBits / astContext.getCharWidth()); in getBitfieldStorageType() 180 const ASTContext &astContext; member 210 astContext(cirGenTypes.getASTContext()), recordDecl(recordDecl), in CIRRecordLowering() 223 (unsigned)(getFieldBitOffset(fd) - astContext.toBits(startOffset)); in setBitFieldInfo() 307 bitsToCharUnits(astContext.getTargetInfo().getRegisterWidth()); in accumulateBitFields() 308 unsigned charBits = astContext.getCharWidth(); in accumulateBitFields() [all …]
|
| H A D | CIRGenModule.cpp | 60 clang::ASTContext &astContext, in CIRGenModule() argument 63 : builder(mlirContext, *this), astContext(astContext), in CIRGenModule() 64 langOpts(astContext.getLangOpts()), codeGenOpts(cgo), in CIRGenModule() 66 diags(diags), target(astContext.getTargetInfo()), 90 astContext 92 astContext.getTargetInfo().getPointerAlign(LangAS::Default)) 97 astContext.getTypeSize(astContext.getSignedSizeType()); 98 SizeAlignInBytes = astContext.toCharUnitsFromBits(sizeTypeSize).getQuantity(); 125 auto &layout = astContext.getASTRecordLayout(rd); in getClassPointerAlignment() 150 return astContext.toCharUnitsFromBits(align); in getNaturalTypeAlignment() [all …]
|
| H A D | CIRGenTypes.cpp | 17 : cgm(genModule), astContext(genModule.getASTContext()), in CIRGenTypes() 106 astContext.getRecordType(recordDecl).print(outStream, policy); in getRecordTypeName() 213 const Type *key = astContext.getTagDeclType(rd).getTypePtr(); in convertRecordDeclType() 273 type = astContext.getCanonicalType(type); in convertType() 315 cir::IntType::get(&getMLIRContext(), astContext.getTypeSize(ty), in convertType() 331 cir::IntType::get(&getMLIRContext(), astContext.getTypeSize(ty), in convertType() 340 if (astContext.getLangOpts().NativeHalfType || in convertType() 341 !astContext.getTargetInfo().useFP16ConversionIntrinsics()) { in convertType() 352 assert(&astContext.getFloatTypeSemantics(type) == in convertType() 358 assert(&astContext.getFloatTypeSemantics(type) == in convertType() [all …]
|
| H A D | CIRGenTypes.h | 50 clang::ASTContext &astContext; variable 100 clang::ASTContext &getASTContext() const { return astContext; } in getASTContext()
|
| H A D | CIRGenModule.h | 60 CIRGenModule(mlir::MLIRContext &mlirContext, clang::ASTContext &astContext, 72 clang::ASTContext &astContext; variable 96 clang::ASTContext &getASTContext() const { return astContext; } in getASTContext()
|
| H A D | CIRGenCall.cpp | 188 ? astContext.VoidPtrTy in arrangeCXXStructorDeclaration() 189 : astContext.VoidTy; in arrangeCXXStructorDeclaration() 316 argTypes.push_back(astContext.getCanonicalParamType(arg.ty)); in arrangeCXXConstructorCall() 335 CanQualType resultType = astContext.VoidTy; in arrangeCXXConstructorCall() 357 argTypes.push_back(astContext.getCanonicalParamType(arg.ty)); in arrangeCXXMethodCall()
|
| H A D | CIRGenBuiltin.cpp | 239 assert(astContext.BuiltinInfo.isLibFunction(builtinID)); in getBuiltinLibFunction() 247 name = astContext.BuiltinInfo.getName(builtinID).substr(10); in getBuiltinLibFunction()
|
| H A D | CIRGenExprScalar.cpp | 1264 getUnwidenedIntegerType(const ASTContext &astContext, const Expr *e) { in getUnwidenedIntegerType() argument 1270 if (!astContext.isPromotableIntegerType(baseTy) || in getUnwidenedIntegerType() 1271 astContext.getTypeSize(baseTy) >= astContext.getTypeSize(e->getType())) in getUnwidenedIntegerType() 1278 [[maybe_unused]] static bool isWidenedIntegerOp(const ASTContext &astContext, in isWidenedIntegerOp() argument 1280 return getUnwidenedIntegerType(astContext, e).has_value(); in isWidenedIntegerOp() 1284 [[maybe_unused]] static bool canElideOverflowCheck(const ASTContext &astContext, in canElideOverflowCheck() argument 1302 getUnwidenedIntegerType(astContext, bo->getLHS()); in canElideOverflowCheck() 1307 getUnwidenedIntegerType(astContext, bo->getRHS()); in canElideOverflowCheck() 1322 unsigned promotedSize = astContext.getTypeSize(op.e->getType()); in canElideOverflowCheck() 1323 return (2 * astContext.getTypeSize(lhsTy)) < promotedSize || in canElideOverflowCheck() [all …]
|
| H A D | CIRGenFunction.cpp | 295 static bool mayDropFunctionReturn(const ASTContext &astContext, in mayDropFunctionReturn() argument 304 return returnType.isTriviallyCopyableType(astContext); in mayDropFunctionReturn()
|
| H A D | CIRGenExpr.cpp | 731 static QualType getFixedSizeElementType(const ASTContext &astContext, in getFixedSizeElementType() argument 736 } while ((vla = astContext.getAsVariableArrayType(eltType))); in getFixedSizeElementType()
|
| /freebsd/contrib/llvm-project/clang/include/clang/CIR/ |
| H A D | CIRGenerator.h | 40 clang::ASTContext *astContext; variable 77 void Initialize(clang::ASTContext &astContext) override; 79 void HandleTranslationUnit(clang::ASTContext &astContext) override;
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/ |
| H A D | CIRPasses.cpp | 22 clang::ASTContext &astContext, in runCIRToCIRPasses() argument
|
| /freebsd/contrib/llvm-project/clang/include/clang/Analysis/ |
| H A D | CFG.h | 377 const CXXDestructorDecl *getDestructorDecl(ASTContext &astContext) const; 378 bool isNoReturn(ASTContext &astContext) const;
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | CFG.cpp | 570 explicit CFGBuilder(ASTContext *astContext, in CFGBuilder() argument 572 : Context(astContext), cfg(new CFG()), BuildOpts(buildOpts) {} in CFGBuilder() 5397 CFGImplicitDtor::getDestructorDecl(ASTContext &astContext) const { in getDestructorDecl() 5425 while (const ArrayType *arrayType = astContext.getAsArrayType(ty)) { in getDestructorDecl() 5442 astContext.getBaseElementType(DTy)->getAsCXXRecordDecl(); in getDestructorDecl() 5455 while (const ArrayType *arrayType = astContext.getAsArrayType(ty)) { in getDestructorDecl()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGObjCGNU.cpp | 2104 auto &astContext = CGM.getContext(); in GenerateDirectMethodPrologue() local 2112 astContext.getTypeAlign(astContext.UnsignedLongTy)); in GenerateDirectMethodPrologue()
|