| /llvm-project/llvm/lib/IR/ |
| H A D | Verifier.cpp | 666 #define Check(C, ...) \ 712 Check(I.getOperand(i) != nullptr, "Operand is null", &I); in visit() 735 Check(!GV.isDeclaration() || GV.hasValidDeclarationLinkage(), 741 Check(A->value() <= Value::MaximumAlignment, in visitGlobalValue() 747 Check(Associated->getNumOperands() == 1, in visitGlobalValue() 750 Check(Op, "associated metadata must have a global value", GO, Associated); in visitGlobalValue() 753 Check(VM, "associated metadata must be ValueAsMetadata", GO, Associated); in visitGlobalValue() 755 Check(isa<PointerType>(VM->getValue()->getType()), in visitGlobalValue() 759 Check(isa<GlobalObject>(Stripped) || isa<Constant>(Stripped), in visitGlobalValue() 761 Check(Strippe in visitGlobalValue() 668 #define Check( global() macro [all...] |
| /llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | AssignmentInIfConditionCheck.cpp | 25 AssignmentInIfConditionCheck &Check; in check() member in clang::tidy::bugprone::AssignmentInIfConditionCheck::check::Visitor 28 explicit Visitor(AssignmentInIfConditionCheck &Check) : Check(Check) {} in check() argument 31 AssignmentInIfConditionCheck &Check; in check() member in clang::tidy::bugprone::AssignmentInIfConditionCheck::check::Visitor::VisitIfStmt::ConditionVisitor 34 explicit ConditionVisitor(AssignmentInIfConditionCheck &Check) in check() argument 35 : Check(Check) {} in check() 50 Check.report(BO); in check() 56 Check in check() [all...] |
| H A D | SuspiciousIncludeCheck.cpp | 20 explicit SuspiciousIncludePPCallbacks(SuspiciousIncludeCheck &Check, in SuspiciousIncludePPCallbacks() argument 23 : Check(Check), PP(PP) {} in SuspiciousIncludePPCallbacks() 34 SuspiciousIncludeCheck &Check; member in clang::tidy::bugprone::__anon0b9dc4db0111::SuspiciousIncludePPCallbacks 63 utils::getFileExtension(FileName, Check.ImplementationFileExtensions); in InclusionDirective() 67 Check.diag(DiagLoc, "suspicious #%0 of file with '%1' extension") in InclusionDirective() 70 for (const auto &HFE : Check.HeaderFileExtensions) { in InclusionDirective() 79 Check.diag(DiagLoc, "did you mean to include '%0'?", DiagnosticIDs::Note) in InclusionDirective()
|
| /llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/ |
| H A D | getpw_getgr.cpp | 14 void Check(const char *str) { in Check() function 20 void Check(const passwd *result) { in Check() function 21 Check(result->pw_name); in Check() 22 Check(result->pw_passwd); in Check() 26 Check(result->pw_gecos); in Check() 28 Check(result->pw_dir); in Check() 32 Check(result->pw_class); in Check() 43 void Check(const group *result) { in Check() function 44 Check(result->gr_name); in Check() 45 Check(result->gr_passwd); in Check() [all …]
|
| /llvm-project/llvm/test/CodeGen/AArch64/ |
| H A D | aarch64-dynamic-stack-layout.ll | 100 ; Check that used callee-saved registers are saved 103 ; Check correctness of cfi pseudo-instructions 107 ; Check correct access to arguments passed on the stack, through stack pointer 110 ; Check correct access to local variable on the stack, through stack pointer 112 ; Check epilogue: 119 ; Check that used callee-saved registers are saved 122 ; Check that the frame pointer is created: 125 ; Check correctness of cfi pseudo-instructions 131 ; Check correct access to arguments passed on the stack, through frame pointer 134 ; Check correct access to local variable on the stack, through stack pointer [all …]
|
| /llvm-project/llvm/test/CodeGen/SystemZ/ |
| H A D | int-const-02.ll | 8 ; Check 0. 16 ; Check the high end of the LGHI range. 24 ; Check the next value up, which must use LLILL instead. 32 ; Check the high end of the LLILL range. 40 ; Check the first useful LLILH value, which is the next one up. 48 ; Check the first useful LGFI value, which is the next one up again. 56 ; Check the high end of the LGFI range. 64 ; Check the next value up, which should use LLILH instead. 72 ; Check the next value up again, which should use LLILF. 80 ; Check the high end of the LLILH range. [all …]
|
| H A D | or-04.ll | 5 ; Check the lowest useful OILL value. 14 ; Check the high end of the OILL range. 23 ; Check the lowest useful OILH value, which is the next value up. 32 ; Check the lowest useful OILF value, which is the next value up again. 41 ; Check the high end of the OILH range. 50 ; Check the high end of the OILF range. 59 ; Check the lowest useful OIHL value, which is the next value up. 68 ; Check the next value up again, which must use two ORs. 78 ; Check the high end of the OILL range. 88 ; Check the next value up, which must use OILH [all …]
|
| H A D | int-mul-06.ll | 5 ; Check multiplication by 2, which should use shifts. 14 ; Check multiplication by 3. 23 ; Check the high end of the MGHI range. 32 ; Check the next value up, which should use shifts. 41 ; Check the next value up again, which can use MSGFI. 50 ; Check the high end of the MSGFI range. 59 ; Check the next value up, which should use shifts. 68 ; Check the next value up again, which cannot use a constant multiplicatoin. 77 ; Check multiplication by -1, which is a negation. 86 ; Check multiplication by -2, which should use shifts. [all …]
|
| H A D | int-mul-05.ll | 5 ; Check multiplication by 2, which should use shifts. 14 ; Check multiplication by 3. 23 ; Check the high end of the MHI range. 32 ; Check the next value up, which should use shifts. 41 ; Check the next value up again, which can use MSFI. 50 ; Check the high end of the MSFI range. 59 ; Check the next value up, which should use shifts. 68 ; Check the next value up again, which is treated as a negative value. 77 ; Check multiplication by -1, which is a negation. 86 ; Check multiplication by -2, which should use shifts. [all …]
|
| H A D | int-const-01.ll | 7 ; Check 0. 15 ; Check the high end of the LHI range. 23 ; Check the next value up, which must use LLILL instead. 31 ; Check the high end of the LLILL range. 39 ; Check the first useful LLILH value, which is the next one up. 47 ; Check the first useful IILF value, which is the next one up again. 55 ; Check the high end of the LLILH range. 63 ; Check the next value up, which must use IILF. 71 ; Check the highest useful IILF value, 0xffff7fff 79 ; Check the next value up, which should use LHI. [all …]
|
| H A D | int-const-03.ll | 5 ; Check the low end of the unsigned range. 14 ; Check the high end of the signed range. 23 ; Check the next value up. 32 ; Check the high end of the unsigned range. 41 ; Check -1. 50 ; Check the low end of the signed range. 59 ; Check the next value down. 68 ; Check the high end of the MVI range. 78 ; Check the next byte up, which should use MVIY instead of MVI. 88 ; Check the high end of the MVIY range. [all …]
|
| H A D | int-add-07.ll | 5 ; Check additions of 1. 14 ; Check the high end of the AGHI range. 23 ; Check the next value up, which must use AGFI instead. 32 ; Check the high end of the AGFI range. 41 ; Check the next value up, which must use ALGFI instead. 50 ; Check the high end of the ALGFI range. 59 ; Check the next value up, which must be loaded into a register first. 69 ; Check the high end of the negative AGHI range. 78 ; Check the low end of the AGHI range. 87 ; Check the next value down, which must use AGFI instead. [all …]
|
| H A D | and-04.ll | 32 ; Check the next value up, which can again use RISBG. 41 ; Check 0xfffffffe, which can also use RISBG. 50 ; Check the next value up, which is a 32-bit zero extension. 59 ; Check the lowest useful NIHF value (0x00000001_ffffffff). 77 ; Check the lowest NIHH value outside the RISBG range (0x0002ffff_ffffffff). 86 ; Check the highest NIHH value outside the RISBG range (0xfffaffff_ffffffff). 95 ; Check the highest useful NIHF value (0xfffefffe_ffffffff). 104 ; Check the lowest NIHL value outside the RISBG range (0xffff0002_ffffffff). 113 ; Check the highest NIHL value outside the RISBG range (0xfffffffa_ffffffff). 122 ; Check the lowest NILF value outside the RISBG range (0xffffffff_00000002). [all …]
|
| H A D | atomicrmw-or-04.ll | 5 ; Check ORs of a variable. 19 ; Check the lowest useful OILL value. 33 ; Check the high end of the OILL range. 42 ; Check the lowest useful OILH value, which is the next value up. 51 ; Check the lowest useful OILF value, which is the next value up again. 60 ; Check the high end of the OILH range. 69 ; Check the next value up, which must use OILF. 78 ; Check the high end of the OILF range. 87 ; Check the lowest useful OIHL value, which is one greater than above. 96 ; Check the next value up, which must use a register. [all …]
|
| /llvm-project/llvm/include/llvm/IR/ |
| H A D | GenericConvergenceVerifierImpl.h | 34 #define Check(C, ...) \ macro 69 Check(isInsideConvergentFunction(I), in visit() 72 Check(I.getParent()->isEntryBlock(), in visit() 75 Check(!SeenFirstConvOp, in visit() 81 Check(!TokenDef, in visit() 87 Check(TokenDef, "Loop intrinsic must have a convergencectrl token operand.", in visit() 89 Check(!SeenFirstConvOp, in visit() 105 Check(isConvergent(I), in visit() 108 Check(ConvergenceKind != UncontrolledConvergence, in visit() 114 Check(ConvergenceKin in visit() [all...] |
| /llvm-project/llvm/lib/Target/ARM/Disassembler/ |
| H A D | ARMDisassembler.cpp | 1000 Check(S, SoftFail); in AddThumbPredicate() 1028 Check(S, SoftFail); in AddThumbPredicate() 1059 Check(S, SoftFail); in UpdateThumbVFPPredicate() 1092 Check(Result, AddThumbPredicate(MI)); in getThumbInstruction() 1101 Check(Result, AddThumbPredicate(MI)); in getThumbInstruction() 1116 Check(Result, AddThumbPredicate(MI)); in getThumbInstruction() 1154 Check(Result, AddThumbPredicate(MI)); in getThumbInstruction() 1169 Check(Result, AddThumbPredicate(MI)); in getThumbInstruction() 1178 Check(Result, AddThumbPredicate(MI)); in getThumbInstruction() 1204 Check(Resul in getThumbInstruction() [all...] |
| /llvm-project/clang-tools-extra/clang-tidy/utils/ |
| H A D | HeaderGuard.cpp | 28 HeaderGuardPPCallbacks(Preprocessor *PP, HeaderGuardCheck *Check) in HeaderGuardPPCallbacks() argument 29 : PP(PP), Check(Check) {} in HeaderGuardPPCallbacks() 87 if (!Check->shouldFixHeaderGuard(FileName)) in EndOfMainFile() 113 Check->diag(Ifndef, "header guard does not follow preferred style") in EndOfMainFile() 116 Check->diag(EndIf, "#endif for a header guard should reference the " in EndOfMainFile() 151 return Check->shouldSuggestEndifComment(FileName); in wouldFixEndifComment() 165 std::string CPPVar = Check->getHeaderGuard(FileName, CurHeaderGuard); in checkHeaderGuardDefinition() 166 CPPVar = Check->sanitizeHeaderGuard(CPPVar); in checkHeaderGuardDefinition() 197 Check->formatEndIf(HeaderGuard))); in checkEndifComment() 209 if (!Check->shouldSuggestToAddHeaderGuard(FileName)) in checkGuardlessHeaders() [all …]
|
| H A D | RenamerClangTidyCheck.cpp | 184 RenamerClangTidyCheck *Check) in RenamerClangTidyCheckPPCallbacks() argument 185 : SM(SM), Check(Check) {} in RenamerClangTidyCheckPPCallbacks() 197 Check->checkMacro(MacroNameTok, Info, SM); in MacroDefined() 204 Check->expandMacro(MacroNameTok, MD.getMacroInfo(), SM); in MacroExpands() 209 RenamerClangTidyCheck *Check; member in clang::tidy::__anonef0c75980211::RenamerClangTidyCheckPPCallbacks 215 RenamerClangTidyVisitor(RenamerClangTidyCheck *Check, const SourceManager &SM, in RenamerClangTidyVisitor() argument 217 : Check(Check), SM(SM), in RenamerClangTidyVisitor() 227 Check in VisitCXXConstructorDecl() 389 RenamerClangTidyCheck *Check; global() member in clang::tidy::__anonef0c75980211::RenamerClangTidyVisitor [all...] |
| /llvm-project/llvm/lib/Analysis/ |
| H A D | Lint.cpp | 1 //===-- Lint.cpp - Check for common errors in LLVM IR ---------------------===// 176 // Check - We know that cond should be true, if not print an error message. 177 #define Check(C, ...) \ 188 Check(F.hasName() || F.hasLocalLinkage(), in visitFunction() 191 // TODO: Check for irreducible control flow. in visitCallBase() 202 Check(I.getCallingConv() == F->getCallingConv(), in visitCallBase() 209 Check(FT->isVarArg() ? FT->getNumParams() <= NumActualArgs in visitCallBase() 215 Check(FT->getReturnType() == I.getType(), in visitCallBase() 220 // Check argument types (in case the callee was casted) and attributes. in visitCallBase() 228 Check(Forma in visitCallBase() 173 #define Check( global() macro [all...] |
| /llvm-project/flang/lib/Semantics/ |
| H A D | check-cuda.cpp | 86 // TODO(CUDA): Check for unsupported intrinsics here in operator ()() 256 Check(body); in Check() 260 void Check(const parser::Block &block) { in Check() 262 Check(epc); in Check() 267 void Check(const parser::ExecutionPartConstruct &epc) { in Check() 270 [&](const parser::ExecutableConstruct &x) { Check(x); }, in Check() 286 void Check(const parser::ExecutableConstruct &ec) { in GetIOControl() 290 Check(stmt.statement, stmt.source); in IsInternalIO() 295 common::visit([&](const auto &y) { Check(y); }, control->u); in IsInternalIO() 297 Check(st in IsInternalIO() 226 void Check(const parser::Block &block) { Check() function in Fortran::semantics::DeviceContextChecker 233 void Check(const parser::ExecutionPartConstruct &epc) { Check() function in Fortran::semantics::DeviceContextChecker 252 void Check(const parser::ExecutableConstruct &ec) { Check() function in Fortran::semantics::DeviceContextChecker 310 void Check(const parser::ActionStmt &stmt, const parser::CharBlock &source) { Check() function in Fortran::semantics::DeviceContextChecker 360 void Check(const parser::IfConstruct &ic) { Check() function in Fortran::semantics::DeviceContextChecker 377 void Check(const parser::IfStmt &is) { Check() function in Fortran::semantics::DeviceContextChecker 384 void Check(const parser::LoopControl::Bounds &bounds) { Check() function in Fortran::semantics::DeviceContextChecker 391 void Check(const parser::LoopControl::Concurrent &x) { Check() function in Fortran::semantics::DeviceContextChecker 407 void Check(const parser::ScalarLogicalExpr &x) { Check() function in Fortran::semantics::DeviceContextChecker 410 void Check(const parser::ScalarIntExpr &x) { Check() function in Fortran::semantics::DeviceContextChecker 413 void Check(const parser::ScalarExpr &x) { Check() function in Fortran::semantics::DeviceContextChecker 416 void Check(const parser::Expr &expr) { Check() function in Fortran::semantics::DeviceContextChecker [all...] |
| H A D | pointer-assignment.cpp | 63 bool Check(const SomeExpr &); 67 template <typename T> bool Check(const T &); 68 template <typename T> bool Check(const evaluate::Expr<T> &); 69 template <typename T> bool Check(const evaluate::FunctionRef<T> &); 70 template <typename T> bool Check(const evaluate::Designator<T> &); 71 bool Check(const evaluate::NullPointer &); 72 bool Check(const evaluate::ProcedureDesignator &); 73 bool Check(const evaluate::ProcedureRef &); 75 bool Check(parser::CharBlock rhsName, bool isCall, 162 template <typename T> bool PointerAssignmentChecker::Check(cons in Check() 159 template <typename T> bool PointerAssignmentChecker::Check(const T &) { Check() function in Fortran::semantics::PointerAssignmentChecker 168 bool PointerAssignmentChecker::Check(const evaluate::Expr<T> &x) { Check() function in Fortran::semantics::PointerAssignmentChecker 172 bool PointerAssignmentChecker::Check(const SomeExpr &rhs) { Check() function in Fortran::semantics::PointerAssignmentChecker 237 bool PointerAssignmentChecker::Check(const evaluate::NullPointer &) { Check() function in Fortran::semantics::PointerAssignmentChecker 242 bool PointerAssignmentChecker::Check(const evaluate::FunctionRef<T> &f) { Check() function in Fortran::semantics::PointerAssignmentChecker 296 bool PointerAssignmentChecker::Check(const evaluate::Designator<T> &d) { Check() function in Fortran::semantics::PointerAssignmentChecker 365 bool PointerAssignmentChecker::Check(parser::CharBlock rhsName, bool isCall, Check() function in Fortran::semantics::PointerAssignmentChecker 385 bool PointerAssignmentChecker::Check(const evaluate::ProcedureDesignator &d) { Check() function in Fortran::semantics::PointerAssignmentChecker 415 bool PointerAssignmentChecker::Check(const evaluate::ProcedureRef &ref) { Check() function in Fortran::semantics::PointerAssignmentChecker [all...] |
| /llvm-project/llvm/test/tools/llvm-readobj/ELF/ |
| H A D | note-core.test | 3 ## Check NT_PRSTATUS. 8 ## Check NT_FPREGSET. 13 ## Check NT_PRPSINFO. 18 ## Check NT_TASKSTRUCT. 23 ## Check NT_AUXV. 28 ## Check NT_PSTATUS. 33 ## Check NT_FPREGS. 38 ## Check NT_PSINFO. 43 ## Check NT_LWPSTATUS. 48 ## Check NT_LWPSINF [all...] |
| /llvm-project/llvm/test/ExecutionEngine/JITLink/x86-64/ |
| H A D | MachO_relocations.s | 14 # Check that common symbols work. 29 # Check X86_64_RELOC_BRANCH handling with a call to a local function. 43 # Check X86_64_RELOC_GOTPCREL handling with a load from an external symbol. 56 # Check X86_64_RELOC_GOTPCREL handling with cmp instructions, which have 66 # Check that calls to external functions trigger the generation of stubs and GOT 77 # Check signed relocation handling: 142 # Check X86_64_RELOC_SUBTRACTOR Quad/Long in anonymous storage with anonymous 174 # Check X86_64_RELOC_UNSIGNED / quad / extern handling by putting the address of 183 # Check X86_64_RELOC_UNSIGNED / long / extern handling by putting the address of 192 # Check X86_64_RELOC_UNSIGNED / quad / non-extern handling by putting the [all …]
|
| /llvm-project/clang/include/clang/StaticAnalyzer/Checkers/ |
| H A D | Checkers.td | 155 HelpText<"Check for logical errors for function calls and Objective-C " 161 "Check whether a called function pointer is null or " 167 "Check whether a function was called with the appropriate " 173 "Check whether the implicit this parameter is null or " 179 "Check whether the argument of operator delete is undefined", 184 "Check whether any of the pass-by-value parameters is " 190 "Check whether the pointee of a pass-by-reference or " 196 "Check whether the reciever in the message expression is nil", 201 "Check whether the reciever in the message expression is " 215 HelpText<"Check fo [all...] |
| /llvm-project/clang-tools-extra/unittests/clang-tidy/ |
| H A D | ClangTidyTest.h | 30 template <typename Check, typename... Checks> struct CheckFactory { 34 CheckFactory<Check>::createChecks(Context, Result); in createChecks() 39 template <typename Check> struct CheckFactory<Check> { 43 Result.emplace_back(std::make_unique<Check>( 70 for (auto &Check : Checks) { 71 assert(Check.get() && "Checks can't be null"); 72 if (!Check->isLanguageVersionSupported(Context.getLangOpts())) 74 Check->registerMatchers(&Finder); 75 Check [all...] |