| /llvm-project/clang/unittests/AST/ |
| H A D | SizelessTypesTest.cpp | 24 ASTContext &Ctx = AST->getASTContext(); member 25 TranslationUnitDecl &TU = *Ctx.getTranslationUnitDecl(); 26 TypeDecl *Foo = cast<TypeDecl>(TU.lookup(&Ctx.Idents.get("foo")).front()); 31 ASSERT_TRUE(Ctx.SveInt8Ty->isSizelessBuiltinType()); in TEST_F() 32 ASSERT_TRUE(Ctx.SveInt16Ty->isSizelessBuiltinType()); in TEST_F() 33 ASSERT_TRUE(Ctx.SveInt32Ty->isSizelessBuiltinType()); in TEST_F() 34 ASSERT_TRUE(Ctx.SveInt64Ty->isSizelessBuiltinType()); in TEST_F() 36 ASSERT_TRUE(Ctx.SveUint8Ty->isSizelessBuiltinType()); in TEST_F() 37 ASSERT_TRUE(Ctx.SveUint16Ty->isSizelessBuiltinType()); in TEST_F() 38 ASSERT_TRUE(Ctx.SveUint32Ty->isSizelessBuiltinType()); in TEST_F() [all …]
|
| H A D | DeclTest.cpp | 82 ASTContext &Ctx = AST->getASTContext(); in TEST() local 83 assert(Ctx.getTargetInfo().getUserLabelPrefix() == StringRef("_") && in TEST() 88 selectFirst<CXXRecordDecl>("d", match(cxxRecordDecl().bind("d"), Ctx)); in TEST() 93 DeclF->addAttr(AsmLabelAttr::Create(Ctx, "foo", /*LiteralLabel=*/true)); in TEST() 94 DeclG->addAttr(AsmLabelAttr::Create(Ctx, "goo", /*LiteralLabel=*/false)); in TEST() 99 ItaniumMangleContext::create(Ctx, Diags)); in TEST() 123 ASTContext &Ctx = AST->getASTContext(); in TEST() local 124 assert(Ctx.getTargetInfo().getUserLabelPrefix() == StringRef("_") && in TEST() 129 selectFirst<VarDecl>("A", match(varDecl().bind("A"), Ctx)); in TEST() 131 selectFirst<FieldDecl>("B", match(fieldDecl().bind("B"), Ctx)); in TEST() [all …]
|
| H A D | ASTExprTest.cpp | 29 static IntegerLiteral *createIntLiteral(ASTContext &Ctx, uint32_t Value) { in createIntLiteral() argument 31 return IntegerLiteral::Create(Ctx, llvm::APInt(numBits, Value), Ctx.IntTy, in createIntLiteral() 52 ASTContext &Ctx = AST->getASTContext(); in TEST() local 65 auto *IntExpr = createIntLiteral(Ctx, 10); in TEST() 67 new (Ctx) ParenExpr(SourceLocation{}, SourceLocation{}, IntExpr); in TEST() 73 auto *IntExpr = createIntLiteral(Ctx, 10); in TEST() 75 new (Ctx) ParenExpr(SourceLocation{}, SourceLocation{}, IntExpr); in TEST() 86 ASTContext &Ctx = AST->getASTContext(); in TEST() local 91 InitListExpr *BaseInit = new (Ctx) InitListExpr(Ctx, Loc, {}, Loc); in TEST() 92 BaseInit->setType(Ctx.getRecordType(Empty)); in TEST() [all …]
|
| H A D | ASTContextParentMapTest.cpp | 87 auto &Ctx = AST->getASTContext(); in TEST() local 88 auto &TU = *Ctx.getTranslationUnitDecl(); in TEST() 89 auto &Foo = *TU.lookup(&Ctx.Idents.get("foo")).front(); in TEST() 90 auto &Bar = *cast<DeclContext>(Foo).lookup(&Ctx.Idents.get("bar")).front(); in TEST() 91 auto &Baz = *TU.lookup(&Ctx.Idents.get("baz")).front(); in TEST() 94 EXPECT_THAT(Ctx.getParents(Bar), ElementsAre(DynTypedNode::create(Foo))); in TEST() 95 EXPECT_THAT(Ctx.getParents(Foo), ElementsAre(DynTypedNode::create(TU))); in TEST() 96 EXPECT_THAT(Ctx.getParents(Baz), ElementsAre(DynTypedNode::create(TU))); in TEST() 99 Ctx.setTraversalScope({&Foo}); in TEST() 100 EXPECT_THAT(Ctx in TEST() 126 auto &Ctx = AST->getASTContext(); TEST() local [all...] |
| /llvm-project/llvm/lib/MC/ |
| H A D | MCObjectFileInfo.cpp | 66 EHFrameSection = Ctx->getMachOSection( in initMachOMCObjectFileInfo() 77 switch (Ctx->emitDwarfUnwindInfo()) { in initMachOMCObjectFileInfo() 93 = Ctx->getMachOSection("__TEXT", "__text", in initMachOMCObjectFileInfo() 97 = Ctx->getMachOSection("__DATA", "__data", 0, SectionKind::getData()); in initMachOMCObjectFileInfo() 103 = Ctx->getMachOSection("__DATA", "__thread_data", in initMachOMCObjectFileInfo() 107 = Ctx->getMachOSection("__DATA", "__thread_bss", in initMachOMCObjectFileInfo() 113 = Ctx->getMachOSection("__DATA", "__thread_vars", in initMachOMCObjectFileInfo() 117 TLSThreadInitSection = Ctx->getMachOSection( in initMachOMCObjectFileInfo() 122 = Ctx->getMachOSection("__TEXT", "__cstring", in initMachOMCObjectFileInfo() 126 = Ctx in initMachOMCObjectFileInfo() [all...] |
| /llvm-project/clang/unittests/Analysis/ |
| H A D | MacroExpansionContextTest.cpp | 70 auto Ctx = std::make_unique<MacroExpansionContext>(LangOpts); in getMacroExpansionContextFor() local 71 Ctx->registerForPreprocessor(PP); in getMacroExpansionContextFor() 79 return Ctx; in getMacroExpansionContextFor() 89 static std::string dumpExpandedTexts(const MacroExpansionContext &Ctx) { in dumpExpandedTexts() argument 92 Ctx.dumpExpandedTextsToStream(OS); in dumpExpandedTexts() 96 static std::string dumpExpansionRanges(const MacroExpansionContext &Ctx) { in dumpExpansionRanges() argument 99 Ctx.dumpExpansionRangesToStream(OS); in dumpExpansionRanges() 106 const auto Ctx = getMacroExpansionContextFor(R"code( in TEST_F() local 115 dumpExpandedTexts(*Ctx)); in TEST_F() 117 dumpExpansionRanges(*Ctx)); in TEST_F() [all …]
|
| /llvm-project/clang/unittests/Analysis/FlowSensitive/ |
| H A D | DebugSupportTest.cpp | 26 ConstraintContext Ctx; in TEST() local 27 auto B = Ctx.atom(); in TEST() 34 ConstraintContext Ctx; in TEST() local 35 EXPECT_EQ("true", llvm::to_string(*Ctx.literal(true))); in TEST() 36 EXPECT_EQ("false", llvm::to_string(*Ctx.literal(false))); in TEST() 40 ConstraintContext Ctx; in TEST() local 41 auto B = Ctx.neg(Ctx.atom()); in TEST() 48 ConstraintContext Ctx; in TEST() local 49 auto *V0 = Ctx.atom(); in TEST() 50 auto *V1 = Ctx.atom(); in TEST() [all …]
|
| H A D | SolverTest.h | 69 ConstraintContext Ctx; in TYPED_TEST_P() local 70 auto X = Ctx.atom(); in TYPED_TEST_P() 78 ConstraintContext Ctx; in TYPED_TEST_P() local 79 auto X = Ctx.atom(); in TYPED_TEST_P() 80 auto NotX = Ctx.neg(X); in TYPED_TEST_P() 88 ConstraintContext Ctx; in TYPED_TEST_P() local 89 auto X = Ctx.atom(); in TYPED_TEST_P() 90 auto NotX = Ctx.neg(X); in TYPED_TEST_P() 97 ConstraintContext Ctx; in TYPED_TEST_P() local 98 auto X = Ctx.atom(); in TYPED_TEST_P() [all …]
|
| /llvm-project/clang/lib/AST/ |
| H A D | NSAPI.cpp | 19 : Ctx(ctx), ClassIds(), BOOLId(nullptr), NSIntegerId(nullptr), in NSAPI() 38 return (ClassIds[K] = &Ctx.Idents.get(ClassName[K])); in getNSClassId() 48 Sel = Ctx.Selectors.getUnarySelector(&Ctx.Idents.get("stringWithString")); in getNSStringSelector() 51 Sel = Ctx.Selectors.getUnarySelector( in getNSStringSelector() 52 &Ctx.Idents.get("stringWithUTF8String")); in getNSStringSelector() 55 Sel = Ctx.Selectors.getUnarySelector( in getNSStringSelector() 56 &Ctx.Idents.get("initWithUTF8String")); in getNSStringSelector() 59 const IdentifierInfo *KeyIdents[] = {&Ctx.Idents.get("stringWithCString"), in getNSStringSelector() 60 &Ctx in getNSStringSelector() [all...] |
| H A D | QualTypeNames.cpp | 21 /// \param[in] Ctx - the AST Context to be used. 27 const ASTContext &Ctx, 34 /// \param[in] Ctx - the AST Context to be used. 42 const ASTContext &Ctx, const TypeDecl *TD, 46 const ASTContext &Ctx, const Decl *decl, 50 const ASTContext &Ctx, NestedNameSpecifier *scope, bool WithGlobalNsPrefix); 52 static bool getFullyQualifiedTemplateName(const ASTContext &Ctx, 68 Ctx, NNS, WithGlobalNsPrefix); in getFullyQualifiedTemplateName() 77 Ctx, ArgTDecl, true, WithGlobalNsPrefix); in getFullyQualifiedTemplateName() 84 Ctx in getFullyQualifiedTemplateName() 56 getFullyQualifiedTemplateName(const ASTContext & Ctx,TemplateName & TName,bool WithGlobalNsPrefix) getFullyQualifiedTemplateName() argument 95 getFullyQualifiedTemplateArgument(const ASTContext & Ctx,TemplateArgument & Arg,bool WithGlobalNsPrefix) getFullyQualifiedTemplateArgument() argument 121 getFullyQualifiedTemplateType(const ASTContext & Ctx,const Type * TypePtr,bool WithGlobalNsPrefix) getFullyQualifiedTemplateType() argument 189 createOuterNNS(const ASTContext & Ctx,const Decl * D,bool FullyQualify,bool WithGlobalNsPrefix) createOuterNNS() argument 215 getFullyQualifiedNestedNameSpecifier(const ASTContext & Ctx,NestedNameSpecifier * Scope,bool WithGlobalNsPrefix) getFullyQualifiedNestedNameSpecifier() argument 268 createNestedNameSpecifierForScopeOf(const ASTContext & Ctx,const Decl * Decl,bool FullyQualified,bool WithGlobalNsPrefix) createNestedNameSpecifierForScopeOf() argument 320 createNestedNameSpecifierForScopeOf(const ASTContext & Ctx,const Type * TypePtr,bool FullyQualified,bool WithGlobalNsPrefix) createNestedNameSpecifierForScopeOf() argument 342 createNestedNameSpecifier(const ASTContext & Ctx,const NamespaceDecl * Namespace,bool WithGlobalNsPrefix) createNestedNameSpecifier() argument 358 createNestedNameSpecifier(const ASTContext & Ctx,const TypeDecl * TD,bool FullyQualify,bool WithGlobalNsPrefix) createNestedNameSpecifier() argument 379 getFullyQualifiedType(QualType QT,const ASTContext & Ctx,bool WithGlobalNsPrefix) getFullyQualifiedType() argument 483 getFullyQualifiedName(QualType QT,const ASTContext & Ctx,const PrintingPolicy & Policy,bool WithGlobalNsPrefix) getFullyQualifiedName() argument [all...] |
| H A D | ExprClassification.cpp | 26 static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E); 27 static Cl::Kinds ClassifyDecl(ASTContext &Ctx, const Decl *D); 28 static Cl::Kinds ClassifyUnnamed(ASTContext &Ctx, QualType T); 29 static Cl::Kinds ClassifyMemberExpr(ASTContext &Ctx, const MemberExpr *E); 30 static Cl::Kinds ClassifyBinaryOp(ASTContext &Ctx, const BinaryOperator *E); 31 static Cl::Kinds ClassifyConditional(ASTContext &Ctx, 34 static Cl::ModifiableType IsModifiable(ASTContext &Ctx, const Expr *E, 37 Cl Expr::ClassifyImpl(ASTContext &Ctx, SourceLocation *Loc) const { in ClassifyImpl() argument 40 Cl::Kinds kind = ClassifyInternal(Ctx, this); in ClassifyImpl() 43 if (!Ctx in ClassifyImpl() 108 ClassifyInternal(ASTContext & Ctx,const Expr * E) ClassifyInternal() argument 473 ClassifyDecl(ASTContext & Ctx,const Decl * D) ClassifyDecl() argument 506 ClassifyUnnamed(ASTContext & Ctx,QualType T) ClassifyUnnamed() argument 523 ClassifyMemberExpr(ASTContext & Ctx,const MemberExpr * E) ClassifyMemberExpr() argument 585 ClassifyBinaryOp(ASTContext & Ctx,const BinaryOperator * E) ClassifyBinaryOp() argument 620 ClassifyConditional(ASTContext & Ctx,const Expr * True,const Expr * False) ClassifyConditional() argument 652 IsModifiable(ASTContext & Ctx,const Expr * E,Cl::Kinds Kind,SourceLocation & Loc) IsModifiable() argument 725 isModifiableLvalue(ASTContext & Ctx,SourceLocation * Loc) const isModifiableLvalue() argument [all...] |
| /llvm-project/llvm/lib/Object/ |
| H A D | WasmObjectFile.cpp | 80 static uint8_t readUint8(WasmObjectFile::ReadContext &Ctx) { 81 if (Ctx.Ptr == Ctx.End) 83 return *Ctx.Ptr++; in readUint8() argument 86 static uint32_t readUint32(WasmObjectFile::ReadContext &Ctx) { in readUint8() 87 if (Ctx.Ptr + 4 > Ctx.End) in readUint8() 89 uint32_t Result = support::endian::read32le(Ctx.Ptr); in readUint32() argument 90 Ctx.Ptr += 4; in readUint32() 94 static int32_t readFloat32(WasmObjectFile::ReadContext &Ctx) { in readUint32() 97 readFloat32(WasmObjectFile::ReadContext & Ctx) readFloat32() argument 106 readFloat64(WasmObjectFile::ReadContext & Ctx) readFloat64() argument 115 readULEB128(WasmObjectFile::ReadContext & Ctx) readULEB128() argument 125 readString(WasmObjectFile::ReadContext & Ctx) readString() argument 135 readLEB128(WasmObjectFile::ReadContext & Ctx) readLEB128() argument 145 readVaruint1(WasmObjectFile::ReadContext & Ctx) readVaruint1() argument 152 readVarint32(WasmObjectFile::ReadContext & Ctx) readVarint32() argument 159 readVaruint32(WasmObjectFile::ReadContext & Ctx) readVaruint32() argument 166 readVarint64(WasmObjectFile::ReadContext & Ctx) readVarint64() argument 170 readVaruint64(WasmObjectFile::ReadContext & Ctx) readVaruint64() argument 174 readOpcode(WasmObjectFile::ReadContext & Ctx) readOpcode() argument 178 parseValType(WasmObjectFile::ReadContext & Ctx,uint32_t Code) parseValType() argument 200 readInitExpr(wasm::WasmInitExpr & Expr,WasmObjectFile::ReadContext & Ctx) readInitExpr() argument 291 readLimits(WasmObjectFile::ReadContext & Ctx) readLimits() argument 300 readTableType(WasmObjectFile::ReadContext & Ctx) readTableType() argument 308 readSection(WasmSection & Section,WasmObjectFile::ReadContext & Ctx,WasmSectionOrderChecker & Checker) readSection() argument 358 ReadContext Ctx; WasmObjectFile() local 390 ReadContext Ctx; parseSection() local 429 parseDylinkSection(ReadContext & Ctx) parseDylinkSection() argument 448 parseDylink0Section(ReadContext & Ctx) parseDylink0Section() argument 507 parseNameSection(ReadContext & Ctx) parseNameSection() argument 614 parseLinkingSection(ReadContext & Ctx) parseLinkingSection() argument 683 parseLinkingSectionSymtab(ReadContext & Ctx) parseLinkingSectionSymtab() argument 894 parseLinkingSectionComdat(ReadContext & Ctx) parseLinkingSectionComdat() argument 950 parseProducersSection(ReadContext & Ctx) parseProducersSection() argument 991 parseTargetFeaturesSection(ReadContext & Ctx) parseTargetFeaturesSection() argument 1021 parseRelocSection(StringRef Name,ReadContext & Ctx) parseRelocSection() argument 1155 parseCustomSection(WasmSection & Sec,ReadContext & Ctx) parseCustomSection() argument 1181 parseTypeSection(ReadContext & Ctx) parseTypeSection() argument 1259 parseImportSection(ReadContext & Ctx) parseImportSection() argument 1320 parseFunctionSection(ReadContext & Ctx) parseFunctionSection() argument 1339 parseTableSection(ReadContext & Ctx) parseTableSection() argument 1363 parseMemorySection(ReadContext & Ctx) parseMemorySection() argument 1378 parseTagSection(ReadContext & Ctx) parseTagSection() argument 1404 parseGlobalSection(ReadContext & Ctx) parseGlobalSection() argument 1428 parseExportSection(ReadContext & Ctx) parseExportSection() argument 1582 parseStartSection(ReadContext & Ctx) parseStartSection() argument 1590 parseCodeSection(ReadContext & Ctx) parseCodeSection() argument 1636 parseElemSection(ReadContext & Ctx) parseElemSection() argument 1725 parseDataSection(ReadContext & Ctx) parseDataSection() argument 1767 parseDataCountSection(ReadContext & Ctx) parseDataCountSection() argument [all...] |
| /llvm-project/llvm/unittests/IR/ |
| H A D | StructuralHashTest.cpp | 36 LLVMContext Ctx; in TEST() 37 std::unique_ptr<Module> M1 = parseIR(Ctx, ""); in TEST() local 38 std::unique_ptr<Module> M2 = parseIR(Ctx, ""); in TEST() 43 LLVMContext Ctx; in TEST() 44 std::unique_ptr<Module> M0 = parseIR(Ctx, ""); in TEST() 45 std::unique_ptr<Module> M1 = parseIR(Ctx, "define void @f() { ret void }"); in TEST() 46 std::unique_ptr<Module> M2 = parseIR(Ctx, "define void @f() { ret void }"); in TEST() 47 std::unique_ptr<Module> M3 = parseIR(Ctx, "@g = global i32 2"); in TEST() 48 std::unique_ptr<Module> M4 = parseIR(Ctx, "@g = global i32 2"); in TEST() 57 LLVMContext Ctx; in TEST() 30 LLVMContext Ctx; TEST() local 51 LLVMContext Ctx; TEST() local 68 LLVMContext Ctx; TEST() local 77 LLVMContext Ctx; TEST() local 84 LLVMContext Ctx; TEST() local 91 LLVMContext Ctx; TEST() local 99 LLVMContext Ctx; TEST() local 113 LLVMContext Ctx; TEST() local 127 LLVMContext Ctx; TEST() local 141 LLVMContext Ctx; TEST() local 160 LLVMContext Ctx; TEST() local 174 LLVMContext Ctx; TEST() local 192 LLVMContext Ctx; TEST() local 208 LLVMContext Ctx; TEST() local 220 LLVMContext Ctx; TEST() local 232 LLVMContext Ctx; TEST() local [all...] |
| H A D | MemoryModelRelaxationAnnotationsTest.cpp | 26 MMRAMetadata createFromMD(LLVMContext &Ctx, in createFromMD() argument 30 MD.push_back(MMRAMetadata::getTagMD(Ctx, Tag)); in createFromMD() 31 return MDTuple::get(Ctx, MD); in createFromMD() 35 LLVMContext Ctx; in TEST() local 40 MDTuple::get(Ctx, {MDString::get(Ctx, "foo"), MDString::get(Ctx, "bar")}); in TEST() 48 MDTuple::get(Ctx, {MDString::get(Ctx, "bux"), MDString::get(Ctx, "qux")}); in TEST() 49 MDNode *Nested = MDTuple::get(Ctx, {FooBar, BuxQux}); in TEST() 56 LLVMContext Ctx; in TEST() local 58 EXPECT_EQ(MMRAMetadata::getMD(Ctx, {}), nullptr); in TEST() 60 MDTuple *SingleMD = MMRAMetadata::getMD(Ctx, {{"foo", "bar"}}); in TEST() [all …]
|
| /llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | LocalizationChecker.cpp | 76 void initUIMethods(ASTContext &Ctx) const; 77 void initLocStringsMethods(ASTContext &Ctx) const; 134 UIMethods[&Ctx.Idents.get(#receiver)]; 137 {Ctx.Selectors.getNullarySelector(&Ctx.Idents.get(#method)), argument}); 140 {Ctx.Selectors.getUnarySelector(&Ctx.Idents.get(#method)), argument}); 142 receiver##M.insert({Ctx.Selectors.getSelector(count, method_list), argument}); 146 void NonLocalizedStringChecker::initUIMethods(ASTContext &Ctx) const { 156 &Ctx in initUIMethods() 896 isNSStringType(QualType T,ASTContext & Ctx) isNSStringType() argument [all...] |
| /llvm-project/llvm/lib/Target/AVR/MCTargetDesc/ |
| H A D | AVRAsmBackend.cpp | 36 MCContext *Ctx) { 45 Ctx->reportError(Fixup.getLoc(), Diagnostic); in signed_width() 51 MCContext *Ctx) { in signed_width() 54 unsigned_width(Size + 1, Value, std::string("branch target"), Fixup, Ctx); in signed_width() 101 MCContext *Ctx) { 102 adjustBranch(Size, Fixup, Value, Ctx); 117 MCContext *Ctx) { 118 if (!adjustRelativeBranch(Size, Fixup, Value, Ctx->getSubtargetInfo())) { 133 MCContext *Ctx) { 134 if (!adjustRelativeBranch(Size, Fixup, Value, Ctx 39 signed_width(unsigned Width,uint64_t Value,std::string Description,const MCFixup & Fixup,MCContext * Ctx=nullptr) signed_width() argument 59 unsigned_width(unsigned Width,uint64_t Value,std::string Description,const MCFixup & Fixup,MCContext * Ctx=nullptr) unsigned_width() argument 78 adjustBranch(unsigned Size,const MCFixup & Fixup,uint64_t & Value,MCContext * Ctx=nullptr) adjustBranch() argument 89 adjustRelativeBranch(unsigned Size,const MCFixup & Fixup,uint64_t & Value,MCContext * Ctx=nullptr) adjustRelativeBranch() argument 105 fixup_call(unsigned Size,const MCFixup & Fixup,uint64_t & Value,MCContext * Ctx=nullptr) fixup_call() argument 121 fixup_7_pcrel(unsigned Size,const MCFixup & Fixup,uint64_t & Value,MCContext * Ctx=nullptr) fixup_7_pcrel() argument 135 fixup_13_pcrel(unsigned Size,const MCFixup & Fixup,uint64_t & Value,MCContext * Ctx=nullptr) fixup_13_pcrel() argument 148 fixup_6(const MCFixup & Fixup,uint64_t & Value,MCContext * Ctx=nullptr) fixup_6() argument 160 fixup_6_adiw(const MCFixup & Fixup,uint64_t & Value,MCContext * Ctx=nullptr) fixup_6_adiw() argument 171 fixup_port5(const MCFixup & Fixup,uint64_t & Value,MCContext * Ctx=nullptr) fixup_port5() argument 184 fixup_port6(const MCFixup & Fixup,uint64_t & Value,MCContext * Ctx=nullptr) fixup_port6() argument 195 fixup_lds_sts_16(const MCFixup & Fixup,uint64_t & Value,MCContext * Ctx=nullptr) fixup_lds_sts_16() argument 213 fixup(unsigned Size,const MCFixup & Fixup,uint64_t & Value,MCContext * Ctx=nullptr) fixup() argument 223 lo8(unsigned Size,const MCFixup & Fixup,uint64_t & Value,MCContext * Ctx=nullptr) lo8() argument 229 hi8(unsigned Size,const MCFixup & Fixup,uint64_t & Value,MCContext * Ctx=nullptr) hi8() argument 235 hh8(unsigned Size,const MCFixup & Fixup,uint64_t & Value,MCContext * Ctx=nullptr) hh8() argument 241 ms8(unsigned Size,const MCFixup & Fixup,uint64_t & Value,MCContext * Ctx=nullptr) ms8() argument [all...] |
| /llvm-project/clang/lib/Analysis/ |
| H A D | ThreadSafetyCommon.cpp | 123 CallingContext Ctx(nullptr, D); in translateAttrExpr() local 130 Ctx.SelfArg = ME->getBase(); in translateAttrExpr() 131 Ctx.SelfArrow = ME->isArrow(); in translateAttrExpr() 133 Ctx.SelfArg = CE->getImplicitObjectArgument(); in translateAttrExpr() 134 Ctx.SelfArrow = isCalleeArrow(CE->getCallee()); in translateAttrExpr() 135 Ctx.NumArgs = CE->getNumArgs(); in translateAttrExpr() 136 Ctx.FunArgs = CE->getArgs(); in translateAttrExpr() 140 Ctx.SelfArg = CE->getArg(0); in translateAttrExpr() 141 Ctx.SelfArrow = false; in translateAttrExpr() 142 Ctx in translateAttrExpr() 175 translateAttrExpr(const Expr * AttrExp,CallingContext * Ctx) translateAttrExpr() argument 234 translate(const Stmt * S,CallingContext * Ctx) translate() argument 309 translateDeclRefExpr(const DeclRefExpr * DRE,CallingContext * Ctx) translateDeclRefExpr() argument 344 translateCXXThisExpr(const CXXThisExpr * TE,CallingContext * Ctx) translateCXXThisExpr() argument 392 translateMemberExpr(const MemberExpr * ME,CallingContext * Ctx) translateMemberExpr() argument 407 translateObjCIVarRefExpr(const ObjCIvarRefExpr * IVRE,CallingContext * Ctx) translateObjCIVarRefExpr() argument 420 translateCallExpr(const CallExpr * CE,CallingContext * Ctx,const Expr * SelfE) translateCallExpr() argument 447 translateCXXMemberCallExpr(const CXXMemberCallExpr * ME,CallingContext * Ctx) translateCXXMemberCallExpr() argument 462 translateCXXOperatorCallExpr(const CXXOperatorCallExpr * OCE,CallingContext * Ctx) translateCXXOperatorCallExpr() argument 476 translateUnaryOperator(const UnaryOperator * UO,CallingContext * Ctx) translateUnaryOperator() argument 526 translateBinOp(til::TIL_BinaryOpcode Op,const BinaryOperator * BO,CallingContext * Ctx,bool Reverse) translateBinOp() argument 537 translateBinAssign(til::TIL_BinaryOpcode Op,const BinaryOperator * BO,CallingContext * Ctx,bool Assign) translateBinAssign() argument 562 translateBinaryOperator(const BinaryOperator * BO,CallingContext * Ctx) translateBinaryOperator() argument 608 translateCastExpr(const CastExpr * CE,CallingContext * Ctx) translateCastExpr() argument 642 translateArraySubscriptExpr(const ArraySubscriptExpr * E,CallingContext * Ctx) translateArraySubscriptExpr() argument 650 translateAbstractConditionalOperator(const AbstractConditionalOperator * CO,CallingContext * Ctx) translateAbstractConditionalOperator() argument 658 translateDeclStmt(const DeclStmt * S,CallingContext * Ctx) translateDeclStmt() argument [all...] |
| /llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/ |
| H A D | AMDGPUMCKernelDescriptor.cpp | 22 MCContext &Ctx) { in getDefaultAmdhsaKernelDescriptor() argument 26 const MCExpr *ZeroMCExpr = MCConstantExpr::create(0, Ctx); in getDefaultAmdhsaKernelDescriptor() 27 const MCExpr *OneMCExpr = MCConstantExpr::create(1, Ctx); in getDefaultAmdhsaKernelDescriptor() 40 MCConstantExpr::create(amdhsa::FLOAT_DENORM_MODE_FLUSH_NONE, Ctx), in getDefaultAmdhsaKernelDescriptor() 42 amdhsa::COMPUTE_PGM_RSRC1_FLOAT_DENORM_MODE_16_64, Ctx); in getDefaultAmdhsaKernelDescriptor() 47 amdhsa::COMPUTE_PGM_RSRC1_GFX6_GFX11_ENABLE_DX10_CLAMP, Ctx); in getDefaultAmdhsaKernelDescriptor() 51 amdhsa::COMPUTE_PGM_RSRC1_GFX6_GFX11_ENABLE_IEEE_MODE, Ctx); in getDefaultAmdhsaKernelDescriptor() 56 amdhsa::COMPUTE_PGM_RSRC2_ENABLE_SGPR_WORKGROUP_ID_X, Ctx); in getDefaultAmdhsaKernelDescriptor() 62 amdhsa::KERNEL_CODE_PROPERTY_ENABLE_WAVEFRONT_SIZE32, Ctx); in getDefaultAmdhsaKernelDescriptor() 67 amdhsa::COMPUTE_PGM_RSRC1_GFX10_PLUS_WGP_MODE, Ctx); in getDefaultAmdhsaKernelDescriptor() 84 bits_set(const MCExpr * & Dst,const MCExpr * Value,uint32_t Shift,uint32_t Mask,MCContext & Ctx) bits_set() argument 93 bits_get(const MCExpr * Src,uint32_t Shift,uint32_t Mask,MCContext & Ctx) bits_get() argument [all...] |
| /llvm-project/clang/lib/CodeGen/ |
| H A D | CGLoopInfo.cpp | 26 LLVMContext &Ctx = Header->getContext(); in createLoopPropertiesMetadata() local 31 MDNode *LoopID = MDNode::getDistinct(Ctx, NewLoopProperties); in createLoopPropertiesMetadata() 39 LLVMContext &Ctx = Header->getContext(); in createPipeliningMetadata() local 52 MDNode::get(Ctx, {MDString::get(Ctx, "llvm.loop.pipeline.disable"), in createPipeliningMetadata() 54 llvm::Type::getInt1Ty(Ctx), 1))})); in createPipeliningMetadata() 66 MDString::get(Ctx, "llvm.loop.pipeline.initiationinterval"), in createPipeliningMetadata() 68 llvm::Type::getInt32Ty(Ctx), Attrs.PipelineInitiationInterval))}; in createPipeliningMetadata() 69 Args.push_back(MDNode::get(Ctx, Vals)); in createPipeliningMetadata() 74 MDNode *LoopID = MDNode::getDistinct(Ctx, Arg in createPipeliningMetadata() 84 LLVMContext &Ctx = Header->getContext(); createPartialUnrollMetadata() local 146 LLVMContext &Ctx = Header->getContext(); createUnrollAndJamMetadata() local 214 LLVMContext &Ctx = Header->getContext(); createLoopVectorizeMetadata() local 332 LLVMContext &Ctx = Header->getContext(); createLoopDistributeMetadata() local 382 LLVMContext &Ctx = Header->getContext(); createFullUnrollMetadata() local 431 LLVMContext &Ctx = Header->getContext(); createMetadata() local 492 LLVMContext &Ctx = Header->getContext(); LoopInfo() local 520 LLVMContext &Ctx = Header->getContext(); finish() local 605 push(BasicBlock * Header,clang::ASTContext & Ctx,const clang::CodeGenOptions & CGOpts,ArrayRef<const clang::Attr * > Attrs,const llvm::DebugLoc & StartLoc,const llvm::DebugLoc & EndLoc,bool MustProgress) push() argument [all...] |
| /llvm-project/llvm/lib/Target/DirectX/ |
| H A D | DXILMetadata.cpp | |
| /llvm-project/llvm/tools/llvm-readtapi/ |
| H A D | llvm-readtapi.cpp | 159 static bool handleCompareAction(const Context &Ctx) { in handleCompareAction() 160 if (Ctx.Inputs.size() != 2) in handleCompareAction() 167 auto LeftIF = getInterfaceFile(Ctx.Inputs.front()); in handleWriteAction() argument 168 auto RightIF = getInterfaceFile(Ctx.Inputs.at(1)); in handleWriteAction() 183 if (!Ctx.CmpOpt.ArchsToIgnore.empty()) { in handleMergeAction() 186 for (const auto Arch : Ctx.CmpOpt.ArchsToIgnore) { in handleMergeAction() 192 raw_ostream &OS = Ctx.OutStream ? *Ctx.OutStream : outs(); in handleMergeAction() 196 static bool handleWriteAction(const Context &Ctx, in stubifyImpl() argument 199 if (Ctx in stubifyImpl() 152 handleCompareAction(const Context & Ctx) handleCompareAction() argument 179 handleMergeAction(const Context & Ctx) handleMergeAction() argument 214 stubifyDirectory(const StringRef InputPath,Context & Ctx) stubifyDirectory() argument 402 handleStubifyAction(Context & Ctx) handleStubifyAction() argument 433 handleSingleFileAction(const Context & Ctx,const StringRef Action,IFOperation act) handleSingleFileAction() argument 459 Context Ctx; main() local [all...] |
| /llvm-project/llvm/include/llvm/MC/ |
| H A D | MCExpr.h | 165 static const MCConstantExpr *create(int64_t Value, MCContext &Ctx, 398 static const MCSymbolRefExpr *create(const MCSymbol *Symbol, MCContext &Ctx) { 399 return MCSymbolRefExpr::create(Symbol, VK_None, Ctx); 403 MCContext &Ctx, SMLoc Loc = SMLoc()); 405 MCContext &Ctx); 457 MCContext &Ctx, SMLoc Loc = SMLoc()); 459 static const MCUnaryExpr *createLNot(const MCExpr *Expr, MCContext &Ctx, SMLoc Loc = SMLoc()) { 460 return create(LNot, Expr, Ctx, Loc); 463 static const MCUnaryExpr *createMinus(const MCExpr *Expr, MCContext &Ctx, SMLoc Loc = SMLoc()) { 464 return create(Minus, Expr, Ctx, Lo 393 create(const MCSymbol * Symbol,MCContext & Ctx) create() argument 533 createAdd(const MCExpr * LHS,const MCExpr * RHS,MCContext & Ctx) createAdd() argument 538 createAnd(const MCExpr * LHS,const MCExpr * RHS,MCContext & Ctx) createAnd() argument 543 createDiv(const MCExpr * LHS,const MCExpr * RHS,MCContext & Ctx) createDiv() argument 548 createEQ(const MCExpr * LHS,const MCExpr * RHS,MCContext & Ctx) createEQ() argument 553 createGT(const MCExpr * LHS,const MCExpr * RHS,MCContext & Ctx) createGT() argument 558 createGTE(const MCExpr * LHS,const MCExpr * RHS,MCContext & Ctx) createGTE() argument 563 createLAnd(const MCExpr * LHS,const MCExpr * RHS,MCContext & Ctx) createLAnd() argument 568 createLOr(const MCExpr * LHS,const MCExpr * RHS,MCContext & Ctx) createLOr() argument 573 createLT(const MCExpr * LHS,const MCExpr * RHS,MCContext & Ctx) createLT() argument 578 createLTE(const MCExpr * LHS,const MCExpr * RHS,MCContext & Ctx) createLTE() argument 583 createMod(const MCExpr * LHS,const MCExpr * RHS,MCContext & Ctx) createMod() argument 588 createMul(const MCExpr * LHS,const MCExpr * RHS,MCContext & Ctx) createMul() argument 593 createNE(const MCExpr * LHS,const MCExpr * RHS,MCContext & Ctx) createNE() argument 598 createOr(const MCExpr * LHS,const MCExpr * RHS,MCContext & Ctx) createOr() argument 603 createShl(const MCExpr * LHS,const MCExpr * RHS,MCContext & Ctx) createShl() argument 608 createAShr(const MCExpr * LHS,const MCExpr * RHS,MCContext & Ctx) createAShr() argument 613 createLShr(const MCExpr * LHS,const MCExpr * RHS,MCContext & Ctx) createLShr() argument 618 createSub(const MCExpr * LHS,const MCExpr * RHS,MCContext & Ctx) createSub() argument 623 createXor(const MCExpr * LHS,const MCExpr * RHS,MCContext & Ctx) createXor() argument [all...] |
| /llvm-project/llvm/lib/Target/SystemZ/MCTargetDesc/ |
| H A D | SystemZELFObjectWriter.cpp | 34 unsigned getRelocType(MCContext &Ctx, const MCValue &Target, 45 static unsigned getAbsoluteReloc(MCContext &Ctx, SMLoc Loc, unsigned Kind) { in getAbsoluteReloc() argument 66 Ctx.reportError(Loc, "Unsupported absolute address"); in getAbsoluteReloc() 71 static unsigned getPCRelReloc(MCContext &Ctx, SMLoc Loc, unsigned Kind) { in getPCRelReloc() argument 92 Ctx.reportError(Loc, "Unsupported PC-relative address"); in getPCRelReloc() 97 static unsigned getTLSLEReloc(MCContext &Ctx, SMLoc Loc, unsigned Kind) { in getTLSLEReloc() argument 102 Ctx.reportError(Loc, "Unsupported thread-local address (local-exec)"); in getTLSLEReloc() 107 static unsigned getTLSLDOReloc(MCContext &Ctx, SMLoc Loc, unsigned Kind) { in getTLSLDOReloc() argument 112 Ctx.reportError(Loc, "Unsupported thread-local address (local-dynamic)"); in getTLSLDOReloc() 117 static unsigned getTLSLDMReloc(MCContext &Ctx, SMLo argument 128 getTLSGDReloc(MCContext & Ctx,SMLoc Loc,unsigned Kind) getTLSGDReloc() argument 139 getPLTReloc(MCContext & Ctx,SMLoc Loc,unsigned Kind) getPLTReloc() argument 150 getRelocType(MCContext & Ctx,const MCValue & Target,const MCFixup & Fixup,bool IsPCRel) const getRelocType() argument [all...] |
| /llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | SIProgramInfo.cpp | 26 MCContext &Ctx = MF.getContext(); in reset() local 28 const MCExpr *ZeroExpr = MCConstantExpr::create(0, Ctx); in reset() 152 MCContext &Ctx) { in MaskShift() argument 154 const MCExpr *MaskExpr = MCConstantExpr::create(Mask, Ctx); in MaskShift() 155 Val = MCBinaryExpr::createAnd(Val, MaskExpr, Ctx); in MaskShift() 158 const MCExpr *ShiftExpr = MCConstantExpr::create(Shift, Ctx); in MaskShift() 159 Val = MCBinaryExpr::createShl(Val, ShiftExpr, Ctx); in MaskShift() 165 MCContext &Ctx) const { in getComputePGMRSrc1() 167 const MCExpr *RegExpr = MCConstantExpr::create(Reg, Ctx); in getComputePGMRSrc1() 169 MaskShift(VGPRBlocks, /*Mask=*/0x3F, /*Shift=*/0, Ctx), in getComputePGMRSrc1() [all …]
|
| /llvm-project/llvm/unittests/Linker/ |
| H A D | LinkModulesTest.cpp | 29 M.reset(new Module("MyModule", Ctx)); in SetUp() 31 FunctionType::get(PointerType::getUnqual(Ctx), Type::getInt32Ty(Ctx), in SetUp() 36 EntryBB = BasicBlock::Create(Ctx, "entry", F); in SetUp() 37 SwitchCase1BB = BasicBlock::Create(Ctx, "switch.case.1", F); in SetUp() 38 SwitchCase2BB = BasicBlock::Create(Ctx, "switch.case.2", F); in SetUp() 39 ExitBB = BasicBlock::Create(Ctx, "exit", F); in SetUp() 41 AT = ArrayType::get(PointerType::getUnqual(Ctx), 3); in SetUp() 55 ConstantInt *One = ConstantInt::get(Type::getInt32Ty(Ctx), 1); in SetUp() 57 ConstantExpr::getIntToPtr(One, PointerType::getUnqual(Ctx)); in SetUp() 65 LLVMContext Ctx; global() member in __anon77be0c3a0111::LinkModuleTest 134 getExternal(LLVMContext & Ctx,StringRef FuncName) getExternal() argument 150 getInternal(LLVMContext & Ctx) getInternal() argument 225 LLVMContext Ctx; TEST_F() local [all...] |