Searched refs:Ctx (Results 1 - 25 of 421) sorted by relevance

1234567891011>>

/external/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMachORelocationInfo.cpp23 ARMMachORelocationInfo(MCContext &Ctx) : MCRelocationInfo(Ctx) {} argument
29 return ARMMCExpr::CreateUpper16(SubExpr, Ctx);
31 return ARMMCExpr::CreateLower16(SubExpr, Ctx);
41 MCRelocationInfo *llvm::createARMMachORelocationInfo(MCContext &Ctx) { argument
42 return new ARMMachORelocationInfo(Ctx);
/external/llvm/lib/MC/
H A DMCRelocationInfo.cpp17 MCRelocationInfo::MCRelocationInfo(MCContext &Ctx) argument
18 : Ctx(Ctx) {
37 MCRelocationInfo *llvm::createMCRelocationInfo(StringRef TT, MCContext &Ctx) { argument
38 return new MCRelocationInfo(Ctx);
H A DMCObjectFileInfo.cpp61 = Ctx->getMachOSection("__TEXT", "__text",
65 = Ctx->getMachOSection("__DATA", "__data", 0,
72 = Ctx->getMachOSection("__DATA", "__thread_data",
76 = Ctx->getMachOSection("__DATA", "__thread_bss",
82 = Ctx->getMachOSection("__DATA", "__thread_vars",
87 = Ctx->getMachOSection("__DATA", "__thread_init",
92 = Ctx->getMachOSection("__TEXT", "__cstring",
96 = Ctx->getMachOSection("__TEXT","__ustring", 0,
99 = Ctx->getMachOSection("__TEXT", "__literal4",
103 = Ctx
[all...]
H A DMCExternalSymbolizer.cpp90 MCSymbol *Sym = Ctx.GetOrCreateSymbol(Name);
91 Add = MCSymbolRefExpr::Create(Sym, Ctx);
93 Add = MCConstantExpr::Create((int)SymbolicOp.AddSymbol.Value, Ctx);
101 MCSymbol *Sym = Ctx.GetOrCreateSymbol(Name);
102 Sub = MCSymbolRefExpr::Create(Sym, Ctx);
104 Sub = MCConstantExpr::Create((int)SymbolicOp.SubtractSymbol.Value, Ctx);
110 Off = MCConstantExpr::Create(SymbolicOp.Value, Ctx);
116 LHS = MCBinaryExpr::CreateSub(Add, Sub, Ctx);
118 LHS = MCUnaryExpr::CreateMinus(Sub, Ctx);
120 Expr = MCBinaryExpr::CreateAdd(LHS, Off, Ctx);
187 createMCSymbolizer(StringRef TT, LLVMOpInfoCallback GetOpInfo, LLVMSymbolLookupCallback SymbolLookUp, void *DisInfo, MCContext *Ctx, MCRelocationInfo *RelInfo) argument
[all...]
/external/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MachORelocationInfo.cpp25 X86_64MachORelocationInfo(MCContext &Ctx) : MCRelocationInfo(Ctx) {} argument
39 MCSymbol *Sym = Ctx.GetOrCreateSymbol(SymName);
42 Sym->setVariableValue(MCConstantExpr::Create(SymAddr, Ctx));
47 Expr = MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_TLVP, Ctx);
50 Expr = MCBinaryExpr::CreateAdd(MCSymbolRefExpr::Create(Sym, Ctx),
51 MCConstantExpr::Create(4, Ctx),
52 Ctx);
55 Expr = MCBinaryExpr::CreateAdd(MCSymbolRefExpr::Create(Sym, Ctx),
56 MCConstantExpr::Create(2, Ctx),
114 createX86_64MachORelocationInfo(MCContext &Ctx) argument
[all...]
H A DX86ELFRelocationInfo.cpp26 X86_64ELFRelocationInfo(MCContext &Ctx) : MCRelocationInfo(Ctx) {} argument
37 MCSymbol *Sym = Ctx.GetOrCreateSymbol(SymName);
40 Sym->setVariableValue(MCConstantExpr::Create(SymAddr, Ctx));
79 Expr = MCSymbolRefExpr::Create(Sym, Ctx);
88 Expr = MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_GOT, Ctx);
93 Expr = MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_PLT, Ctx);
98 Expr = MCSymbolRefExpr::Create(Sym, Ctx);
104 Expr = MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_GOTPCREL, Ctx);
108 Expr = MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_GOTOFF, Ctx);
132 createX86_64ELFRelocationInfo(MCContext &Ctx) argument
[all...]
/external/clang/lib/StaticAnalyzer/Checkers/
H A DSelectorExtras.h19 static inline Selector getKeywordSelectorImpl(ASTContext &Ctx, argument
23 II.push_back(&Ctx.Idents.get(First));
26 II.push_back(&Ctx.Idents.get(s));
28 return Ctx.Selectors.getSelector(II.size(), &II[0]);
31 static inline Selector getKeywordSelector(ASTContext &Ctx, va_list argp) { argument
34 return getKeywordSelectorImpl(Ctx, First, argp);
38 static inline Selector getKeywordSelector(ASTContext &Ctx, argument
42 Selector result = getKeywordSelectorImpl(Ctx, First, argp);
48 static inline void lazyInitKeywordSelector(Selector &Sel, ASTContext &Ctx, argument
54 Sel = getKeywordSelectorImpl(Ctx, Firs
58 lazyInitNullarySelector(Selector &Sel, ASTContext &Ctx, const char *Name) argument
[all...]
/external/clang/lib/AST/
H A DNSAPI.cpp17 : Ctx(ctx), ClassIds(), BOOLId(nullptr), NSIntegerId(nullptr),
33 return (ClassIds[K] = &Ctx.Idents.get(ClassName[K]));
43 Sel = Ctx.Selectors.getUnarySelector(&Ctx.Idents.get("stringWithString"));
46 Sel = Ctx.Selectors.getUnarySelector(
47 &Ctx.Idents.get("stringWithUTF8String"));
51 &Ctx.Idents.get("stringWithCString"),
52 &Ctx.Idents.get("encoding")
54 Sel = Ctx.Selectors.getSelector(2, KeyIdents);
58 Sel= Ctx
[all...]
H A DExprClassification.cpp26 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 { argument
40 Cl::Kinds kind = ClassifyInternal(Ctx, this);
43 if (!Ctx
102 ClassifyInternal(ASTContext &Ctx, const Expr *E) argument
402 ClassifyDecl(ASTContext &Ctx, const Decl *D) argument
429 ClassifyUnnamed(ASTContext &Ctx, QualType T) argument
446 ClassifyMemberExpr(ASTContext &Ctx, const MemberExpr *E) argument
503 ClassifyBinaryOp(ASTContext &Ctx, const BinaryOperator *E) argument
538 ClassifyConditional(ASTContext &Ctx, const Expr *True, const Expr *False) argument
570 IsModifiable(ASTContext &Ctx, const Expr *E, Cl::Kinds Kind, SourceLocation &Loc) argument
648 isModifiableLvalue(ASTContext &Ctx, SourceLocation *Loc) const argument
[all...]
H A DCXXABI.h47 CXXABI *CreateItaniumCXXABI(ASTContext &Ctx);
48 CXXABI *CreateMicrosoftCXXABI(ASTContext &Ctx);
H A DRecordLayout.cpp20 void ASTRecordLayout::Destroy(ASTContext &Ctx) { argument
22 Ctx.Deallocate(FieldOffsets);
25 Ctx.Deallocate(CXXInfo);
28 Ctx.Deallocate(this);
31 ASTRecordLayout::ASTRecordLayout(const ASTContext &Ctx, CharUnits size, argument
41 FieldOffsets = new (Ctx) uint64_t[FieldCount];
47 ASTRecordLayout::ASTRecordLayout(const ASTContext &Ctx, argument
67 FieldCount(fieldcount), CXXInfo(new (Ctx) CXXRecordLayoutInfo)
70 FieldOffsets = new (Ctx) uint64_t[FieldCount];
92 if (Ctx
[all...]
/external/clang/lib/CodeGen/
H A DCGOpenCLRuntime.cpp36 llvm::LLVMContext& Ctx = CGM.getLLVMContext(); local
45 Ctx, "opencl.image1d_t"), ImgAddrSpc);
48 Ctx, "opencl.image1d_array_t"), ImgAddrSpc);
51 Ctx, "opencl.image1d_buffer_t"), ImgAddrSpc);
54 Ctx, "opencl.image2d_t"), ImgAddrSpc);
57 Ctx, "opencl.image2d_array_t"), ImgAddrSpc);
60 Ctx, "opencl.image3d_t"), ImgAddrSpc);
62 return llvm::IntegerType::get(Ctx, 32);
65 Ctx, "opencl.event_t"), 0);
H A DCGLoopInfo.cpp20 static MDNode *createMetadata(LLVMContext &Ctx, const LoopAttributes &Attrs) { argument
29 MDNode *TempNode = MDNode::getTemporary(Ctx, None);
34 Value *Vals[] = { MDString::get(Ctx, "llvm.loop.vectorize.width"),
35 ConstantInt::get(Type::getInt32Ty(Ctx),
37 Args.push_back(MDNode::get(Ctx, Vals));
42 Value *Vals[] = { MDString::get(Ctx, "llvm.loop.vectorize.unroll"),
43 ConstantInt::get(Type::getInt32Ty(Ctx),
45 Args.push_back(MDNode::get(Ctx, Vals));
50 Value *Vals[] = { MDString::get(Ctx, "llvm.loop.vectorize.enable"),
51 ConstantInt::get(Type::getInt1Ty(Ctx),
[all...]
/external/llvm/lib/IR/
H A DDebugLoc.cpp20 MDNode *DebugLoc::getScope(const LLVMContext &Ctx) const {
26 assert(unsigned(ScopeIdx) <= Ctx.pImpl->ScopeRecords.size() &&
28 return Ctx.pImpl->ScopeRecords[ScopeIdx-1].get();
32 assert(unsigned(-ScopeIdx) <= Ctx.pImpl->ScopeInlinedAtRecords.size() &&
34 return Ctx.pImpl->ScopeInlinedAtRecords[-ScopeIdx-1].first.get();
37 MDNode *DebugLoc::getInlinedAt(const LLVMContext &Ctx) const {
43 assert(unsigned(-ScopeIdx) <= Ctx.pImpl->ScopeInlinedAtRecords.size() &&
45 return Ctx.pImpl->ScopeInlinedAtRecords[-ScopeIdx-1].second.get();
50 const LLVMContext &Ctx) const {
59 assert(unsigned(ScopeIdx) <= Ctx
106 LLVMContext &Ctx = Scope->getContext(); local
170 print(const LLVMContext &Ctx, raw_ostream &OS) const argument
[all...]
/external/llvm/lib/Target/SystemZ/MCTargetDesc/
H A DSystemZMCAsmInfo.cpp31 SystemZMCAsmInfo::getNonexecutableStackSection(MCContext &Ctx) const {
32 return Ctx.getELFSection(".note.GNU-stack", ELF::SHT_PROGBITS,
H A DSystemZMCAsmInfo.h24 const MCSection *getNonexecutableStackSection(MCContext &Ctx) const override;
/external/compiler-rt/test/tsan/
H A Dcond_race.cc11 struct Ctx { struct
18 Ctx *c = (Ctx*)p;
27 Ctx *c = new Ctx();
/external/llvm/include/llvm/MC/
H A DMCExpr.h131 static const MCConstantExpr *Create(int64_t Value, MCContext &Ctx);
293 static const MCSymbolRefExpr *Create(const MCSymbol *Symbol, MCContext &Ctx) { argument
294 return MCSymbolRefExpr::Create(Symbol, VK_None, Ctx);
298 MCContext &Ctx);
300 MCContext &Ctx);
348 MCContext &Ctx);
349 static const MCUnaryExpr *CreateLNot(const MCExpr *Expr, MCContext &Ctx) { argument
350 return Create(LNot, Expr, Ctx);
352 static const MCUnaryExpr *CreateMinus(const MCExpr *Expr, MCContext &Ctx) { argument
353 return Create(Minus, Expr, Ctx);
355 CreateNot(const MCExpr *Expr, MCContext &Ctx) argument
358 CreatePlus(const MCExpr *Expr, MCContext &Ctx) argument
420 CreateAdd(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument
424 CreateAnd(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument
428 CreateDiv(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument
432 CreateEQ(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument
436 CreateGT(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument
440 CreateGTE(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument
444 CreateLAnd(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument
448 CreateLOr(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument
452 CreateLT(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument
456 CreateLTE(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument
460 CreateMod(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument
464 CreateMul(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument
468 CreateNE(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument
472 CreateOr(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument
476 CreateShl(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument
480 CreateShr(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument
484 CreateSub(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument
488 CreateXor(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument
[all...]
H A DMCSymbolizer.h45 MCContext &Ctx; member in class:llvm::MCSymbolizer
50 MCSymbolizer(MCContext &Ctx, std::unique_ptr<MCRelocationInfo> RelInfo) argument
51 : Ctx(Ctx), RelInfo(std::move(RelInfo)) {
H A DMCRelocationInfo.h35 MCContext &Ctx; member in class:llvm::MCRelocationInfo
38 MCRelocationInfo(MCContext &Ctx);
/external/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMCExpr.h46 bool isDarwin, MCContext &Ctx);
49 bool isDarwin, MCContext &Ctx) {
50 return Create(VK_PPC_LO, Expr, isDarwin, Ctx);
54 bool isDarwin, MCContext &Ctx) {
55 return Create(VK_PPC_HI, Expr, isDarwin, Ctx);
59 bool isDarwin, MCContext &Ctx) {
60 return Create(VK_PPC_HA, Expr, isDarwin, Ctx);
48 CreateLo(const MCExpr *Expr, bool isDarwin, MCContext &Ctx) argument
53 CreateHi(const MCExpr *Expr, bool isDarwin, MCContext &Ctx) argument
58 CreateHa(const MCExpr *Expr, bool isDarwin, MCContext &Ctx) argument
/external/llvm/include/llvm/IR/
H A DDebugLoc.h83 MDNode *getScope(const LLVMContext &Ctx) const;
87 MDNode *getInlinedAt(const LLVMContext &Ctx) const;
91 const LLVMContext &Ctx) const;
94 MDNode *getScopeNode(const LLVMContext &Ctx) const;
98 DebugLoc getFnDebugLoc(const LLVMContext &Ctx) const;
102 MDNode *getAsMDNode(const LLVMContext &Ctx) const;
109 void dump(const LLVMContext &Ctx) const;
111 void print(const LLVMContext &Ctx, raw_ostream &OS) const;
/external/llvm/lib/Target/AArch64/Disassembler/
H A DAArch64Disassembler.h26 AArch64Disassembler(const MCSubtargetInfo &STI, MCContext &Ctx) argument
27 : MCDisassembler(STI, Ctx) {}
/external/llvm/lib/Target/Sparc/MCTargetDesc/
H A DSparcMCAsmInfo.cpp55 MCContext &Ctx = Streamer.getContext(); local
57 MCSymbolRefExpr::Create(Sym, Ctx), Ctx);
68 MCContext &Ctx = Streamer.getContext(); local
70 MCSymbolRefExpr::Create(Sym, Ctx), Ctx);
/external/clang/lib/Analysis/
H A DThreadSafetyCommon.cpp95 // Also performs substitution of variables; Ctx provides the context.
97 til::SExpr *SExprBuilder::translate(const Stmt *S, CallingContext *Ctx) { argument
108 return translateDeclRefExpr(cast<DeclRefExpr>(S), Ctx);
110 return translateCXXThisExpr(cast<CXXThisExpr>(S), Ctx);
112 return translateMemberExpr(cast<MemberExpr>(S), Ctx);
114 return translateCallExpr(cast<CallExpr>(S), Ctx);
116 return translateCXXMemberCallExpr(cast<CXXMemberCallExpr>(S), Ctx);
118 return translateCXXOperatorCallExpr(cast<CXXOperatorCallExpr>(S), Ctx);
120 return translateUnaryOperator(cast<UnaryOperator>(S), Ctx);
123 return translateBinaryOperator(cast<BinaryOperator>(S), Ctx);
165 translateDeclRefExpr(const DeclRefExpr *DRE, CallingContext *Ctx) argument
190 translateCXXThisExpr(const CXXThisExpr *TE, CallingContext *Ctx) argument
200 translateMemberExpr(const MemberExpr *ME, CallingContext *Ctx) argument
208 translateCallExpr(const CallExpr *CE, CallingContext *Ctx) argument
220 translateCXXMemberCallExpr( const CXXMemberCallExpr *ME, CallingContext *Ctx) argument
226 translateCXXOperatorCallExpr( const CXXOperatorCallExpr *OCE, CallingContext *Ctx) argument
232 translateUnaryOperator(const UnaryOperator *UO, CallingContext *Ctx) argument
267 translateBinOp(til::TIL_BinaryOpcode Op, const BinaryOperator *BO, CallingContext *Ctx, bool Reverse) argument
279 translateBinAssign(til::TIL_BinaryOpcode Op, const BinaryOperator *BO, CallingContext *Ctx, bool Assign) argument
306 translateBinaryOperator(const BinaryOperator *BO, CallingContext *Ctx) argument
352 translateCastExpr(const CastExpr *CE, CallingContext *Ctx) argument
383 translateArraySubscriptExpr(const ArraySubscriptExpr *E, CallingContext *Ctx) argument
392 translateConditionalOperator(const ConditionalOperator *C, CallingContext *Ctx) argument
398 translateBinaryConditionalOperator( const BinaryConditionalOperator *C, CallingContext *Ctx) argument
405 translateDeclStmt(const DeclStmt *S, CallingContext *Ctx) argument
[all...]

Completed in 389 milliseconds

1234567891011>>