/llvm-project/clang/include/clang/Driver/ |
H A D | Action.h | 1 //===- Action.h - Abstract compilation steps --------------------*- C++ -*-===// 35 /// Action - Represent an abstract compilation step to perform. 37 /// An action represents an edge in the compilation graph; typically 47 class Action { 84 // The offloading kind determines if this action is binded to a particular 105 /// The output type of this action. 110 /// Flag that is set to true if this action can be collapsed with others 112 /// the action is used by two different tool chains, which is enabled by the 129 /// The Offloading architecture associated with this action. 132 /// The Offloading toolchain associated with this device action 134 Action(ActionClass Kind, types::ID Type) : Action(Kind, ActionList(), Type) {} Action() function 135 Action(ActionClass Kind, Action *Input, types::ID Type) Action() function 137 Action(ActionClass Kind, Action *Input) Action() function 139 Action(ActionClass Kind, const ActionList &Inputs, types::ID Type) Action() function [all...] |
/llvm-project/polly/utils/ |
H A D | argparse.py | 57 - Action -- The base class for parser actions. Typically actions are 59 the action= argument of add_argument(). However, for greater 60 customization of ArgumentParser actions, subclasses of Action may 61 be defined and passed as the action= argument. 83 "Action", 131 action="ignore", 288 def add_argument(self, action): argument 289 if action.help is not SUPPRESS: 293 invocations = [get_invocation(action)] 294 for subaction in self._iter_indented_subactions(action): [all …]
|
/llvm-project/mlir/docs/ |
H A D | ActionTracing.md | 1 # Action: Tracing and Debugging MLIR-based Compilers 11 `Action` are means to encapsulate any transformation of any granularity in a way 14 fuel" or "debug counters" in LLVM). As such, "executing a pass" is an Action, so 28 The `Action` framework doesn't make any assumptions about how the higher level 31 `Action` execution is shown below: 33 - Compiler developer defines an `Action` class, that is representing the 37 - An external entity registers an "action handler" with the action manager, and 43 ## Wrapping a Transformation in an Action 45 There are two parts for getting started with enabling tracing through Action i [all...] |
/llvm-project/mlir/include/mlir/Debug/ |
H A D | ExecutionContext.h | 13 #include "mlir/IR/Action.h" 20 /// It provides the current action but also access to the parent entry in the 25 ActionActiveStack(const ActionActiveStack *parent, const Action &action, in ActionActiveStack() 27 : parent(parent), action(action), depth(depth) {} in ActionActiveStack() 29 const Action &getAction() const { return action; } in getAction() 42 const Action &action; member 47 /// acts as a handler in the MLIRContext for executing an Action. When an action 49 /// matching this action. If a breakpoint is hit, it passes the action and the 51 /// controlling the execution of the action through an enum value it returns. 57 /// action. [all …]
|
H A D | Counter.h | 12 #include "mlir/IR/Action.h" 19 /// This class implements an action handler that attaches a counter value 20 /// to debug actions and enables/disables execution of these action based on the 21 /// value of the counter. The counter controls the execution of the action with 23 /// number of initial executions of an action. The "count" value is used to 24 /// prevent an action from executing after it has executed for a set number 26 /// a counter for an action with `skip=47` and `count=2`, would skip the 34 /// Add a counter for the given action tag. `countToSkip` is the number 35 /// of counter executions to skip before enabling execution of the action. 37 /// before preventing the action from executing any more. [all …]
|
/llvm-project/clang/lib/Driver/ |
H A D | Action.cpp | 1 //===- Action.cpp - Abstract compilation steps ----------------------------===// 9 #include "clang/Driver/Action.h" 18 Action::~Action() = default; 20 const char *Action::getClassName(ActionClass AC) { in getClassName() 58 void Action::propagateDeviceOffloadInfo(OffloadKind OKind, const char *OArch, in propagateDeviceOffloadInfo() 60 // Offload action set its own kinds on their dependences. in propagateDeviceOffloadInfo() 69 assert(!ActiveOffloadKindMask && "Setting a device kind in a host action??"); in propagateDeviceOffloadInfo() 78 void Action::propagateHostOffloadInfo(unsigned OKinds, const char *OArch) { in propagateHostOffloadInfo() 79 // Offload action se in propagateHostOffloadInfo() [all...] |
/llvm-project/mlir/include/mlir/IR/ |
H A D | Action.h | 1 //===- Action.h - Action Support ---------------------*- C++ -*-=============// 9 // This file contains definitions for the action framework. This framework 31 /// An action is a specific action that is to be taken by the compiler, 33 /// constraints on the granularity of an action, it could be as simple as 37 /// This holds the template-invariant elements of the Action class. 38 class Action { 40 virtual ~Action() = default; 42 /// Return the unique action id of this action, use for casting 47 /// action. For example "pass-application" or "pattern-rewrite". 51 os << "Action \"" << getTag() << "\""; in print() [all …]
|
/llvm-project/clang/include/clang/Frontend/ |
H A D | FrontendAction.h | 1 //===-- FrontendAction.h - Generic Frontend Action Interface ----*- C++ -*-===// 49 /// @name Implementation Action Interface 52 /// Prepare to execute the action on the given CompilerInstance. 54 /// This is called before executing the action on any inputs, and can modify 58 /// Create the AST consumer object for this action, if supported. 62 /// action has indicated that it only uses the preprocessor. 75 /// opportunity to modify the CompilerInvocation or do some other action 90 /// Callback to run the program action, using the initialized 175 /// Is this action invoked on a model file? 182 /// Does this action onl [all...] |
/llvm-project/third-party/unittest/googlemock/include/gmock/ |
H A D | gmock-actions.h | 32 // The ACTION* family of macros can be used in a namespace scope to 35 // ACTION(name) { statements; } 37 // will define an action with the given name that executes the 39 // the return value of the action. Inside the statements, you can 43 // ACTION(IncrementArg1) { 62 // Sometimes you'll want to parameterize the action. For that you can use 105 // While it's tempting to always use the ACTION* macros when defining 106 // a new action, you should also consider implementing ActionInterface 108 // use the action a lot. While these approaches require more work, 110 // arguments and the action parameters, which in general leads to [all …]
|
/llvm-project/llvm/test/tools/llvm-original-di-preservation/Inputs/ |
H A D | corrupted.json | 1 …action":"drop","fn-name":"debug_class_type_samep","metadata":"dbg-var-intrinsic","name":"pf1"},{"a… string 2 … instructions", "bugs": [[{"action":"drop","fn-name":"debug_write_block","metadata":"dbg-var-intri… string 3 …action":"not-generate","bb-name":"land.lhs.true251","fn-name":"parse_ieee_bb","instr":"br","metada… string 4 ame":"ieee_end_class_type","instr":"br","metadata":"DILocation"},{"action":"not-generate","bb-name"… 5 {"file":"wrstabs.c", "pass":"Simplify the CFG", "bugs": [[{"action":"drop","fn-name":"stab_bool_typ… 6 …Simplify the CFG", "bugs": [[{"action":"drop","fn-name":"pr_tag_type","metadata":"dbg-var-intrinsi… string 7 …fy the CFG", "bugs": [[{"action":"drop","fn-name":"dump_section_header","metadata":"dbg-var-intrin… 8 …ump.c", "bad-field": [[{"action":"drop","fn-name":"dump_section_header","metadata":"dbg-var-intrin… 10 {"file":"wrstabs.c", "pass":"Simplify the CFG", "bugs": [[{"action":"drop","bb-name":"if.end","fn-n…
|
/llvm-project/llvm/utils/TableGen/ |
H A D | CallingConvEmitter.cpp | 42 void emitAction(const Record *Action, indent Indent, raw_ostream &O); 93 // We want an entry in AssignedRegsMap for every action, even if that in EmitCallingConv() 111 const Record *Action = CCActions->getElementAsRecord(I); in EmitCallingConv() 113 llvm::any_of(Action->getSuperClasses(), in EmitCallingConv() 120 emitAction(Action, indent(2), O); in EmitCallingConv() 127 void CallingConvEmitter::emitAction(const Record *Action, indent Indent, in EmitAction() 129 if (Action->isSubClassOf("CCPredicateAction")) { in EmitAction() 132 if (Action->isSubClassOf("CCIfType")) { in EmitAction() 133 const ListInit *VTs = Action->getValueAsListInit("VTs"); in EmitAction() 141 } else if (Action in EmitAction() 109 Record *Action = CCActions->getElementAsRecord(i); EmitCallingConv() local 125 EmitAction(Record * Action,unsigned Indent,raw_ostream & O) EmitAction() argument [all...] |
/llvm-project/clang/docs/ |
H A D | RefactoringEngine.rst | 9 refactoring action. 21 .. FIXME: create new refactoring action tutorial and link to the tutorial 31 A refactoring action is a class that defines a list of related refactoring 33 ``clang-refactor`` command. In addition to rules, the refactoring action 34 provides the action's command name and description to ``clang-refactor``. 35 Each action must implement the ``RefactoringAction`` interface. Here's an 36 outline of a ``local-rename`` action: 53 Refactoring Action Rules 56 An individual refactoring action is responsible for creating the set of 57 grouped refactoring action rules that represent one refactoring operation. [all …]
|
/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | LegalizerInfo.h | 93 /// Sentinel value for when no action was found in the specified table. 101 raw_ostream &operator<<(raw_ostream &OS, LegalizeActions::LegalizeAction Action); 141 /// Unsupported or describes an action that must be taken to make an operation 144 /// The action to take or the final answer. 145 LegalizeAction Action; member 146 /// If describing an action, the type index to change. Otherwise zero. 148 /// If describing an action, the new type for TypeIdx. Otherwise LLT{}. 151 LegalizeActionStep(LegalizeAction Action, unsigned TypeIdx, in LegalizeActionStep() 153 : Action(Action), TypeId in LegalizeActionStep() 401 LegalizeAction Action; global() variable 472 actionIf(LegalizeAction Action,LegalityPredicate Predicate) actionIf() argument 479 actionIf(LegalizeAction Action,LegalityPredicate Predicate,LegalizeMutation Mutation) actionIf() argument 486 actionFor(LegalizeAction Action,std::initializer_list<LLT> Types) actionFor() argument 493 actionFor(LegalizeAction Action,std::initializer_list<LLT> Types,LegalizeMutation Mutation) actionFor() argument 502 actionFor(LegalizeAction Action,std::initializer_list<std::pair<LLT,LLT>> Types) actionFor() argument 510 actionFor(LegalizeAction Action,std::initializer_list<std::pair<LLT,LLT>> Types,LegalizeMutation Mutation) actionFor() argument 520 actionForTypeWithAnyImm(LegalizeAction Action,std::initializer_list<LLT> Types) actionForTypeWithAnyImm() argument 528 actionForTypeWithAnyImm(LegalizeAction Action,std::initializer_list<std::pair<LLT,LLT>> Types) actionForTypeWithAnyImm() argument 537 actionForCartesianProduct(LegalizeAction Action,std::initializer_list<LLT> Types) actionForCartesianProduct() argument 548 actionForCartesianProduct(LegalizeAction Action,std::initializer_list<LLT> Types0,std::initializer_list<LLT> Types1) actionForCartesianProduct() argument 560 actionForCartesianProduct(LegalizeAction Action,std::initializer_list<LLT> Types0,std::initializer_list<LLT> Types1,std::initializer_list<LLT> Types2) actionForCartesianProduct() argument 1301 auto Action = getAction(Query).Action; isLegalOrCustom() local [all...] |
/llvm-project/libc/test/src/signal/ |
H A D | sigaction_test.cpp | 24 // SIGKILL cannot have its action changed, but it can be examined. 26 struct sigaction action; in TEST() local 27 EXPECT_THAT(LIBC_NAMESPACE::sigaction(SIGKILL, nullptr, &action), Succeeds()); in TEST() 28 EXPECT_THAT(LIBC_NAMESPACE::sigaction(SIGKILL, &action, nullptr), in TEST() 39 struct sigaction action; in TEST() local 40 EXPECT_THAT(LIBC_NAMESPACE::sigaction(SIGUSR1, nullptr, &action), Succeeds()); in TEST() 42 action.sa_handler = +[](int signal) { in TEST() 46 EXPECT_THAT(LIBC_NAMESPACE::sigaction(SIGUSR1, &action, nullptr), Succeeds()); in TEST() 52 action.sa_handler = SIG_DFL; in TEST() 53 EXPECT_THAT(LIBC_NAMESPACE::sigaction(SIGUSR1, &action, nullptr), Succeeds()); in TEST() [all …]
|
/llvm-project/compiler-rt/test/sanitizer_common/TestCases/ |
H A D | max_allocation_size.cpp | 59 static void *allocate(const char *Action, size_t Size) { in allocate() argument 60 if (!strcmp(Action, "malloc")) in allocate() 62 if (!strcmp(Action, "calloc")) in allocate() 64 if (!strcmp(Action, "realloc")) in allocate() 66 if (!strcmp(Action, "realloc-after-malloc")) { in allocate() 73 if (!strcmp(Action, "new")) in allocate() 75 if (!strcmp(Action, "new-nothrow")) in allocate() 77 if (!strcmp(Action, "strndup")) { in allocate() 88 static void deallocate(const char *Action, void *Ptr) { in deallocate() argument 89 if (!strcmp(Action, "malloc") || !strcmp(Action, "calloc") || in deallocate() [all …]
|
/llvm-project/llvm/utils/lit/lit/ |
H A D | cl_arguments.py | 28 "--version", action="version", version="%(prog)s " + lit.__version__ 53 action="append", 61 "-q", "--quiet", help="Suppress no error output", action="store_true" 69 action="store_true", 78 action="store_true", 85 action="store_true", 92 action="store_true", 105 action="store_false", 115 action="append_const", 124 action [all...] |
/llvm-project/clang/utils/analyzer/ |
H A D | SATest.py | 226 action="store", 236 action="store", 247 "--origin", action="store", default="", help="Origin link for a git repository" 250 "--commit", action="store", default="", help="Git hash for a commit to checkout" 273 action="store_true", 279 action="store_true", 307 action="store", 313 action="store", 317 build_parser.add_argument("-v", "--verbose", action="count", default=0) 330 action="store", [all …]
|
/llvm-project/lldb/source/Commands/ |
H A D | CommandOptionsProcessLaunch.cpp | 48 FileAction action; in SetOptionValue() local 49 if (action.Open(STDIN_FILENO, FileSpec(option_arg), true, false)) in SetOptionValue() 50 launch_info.AppendFileAction(action); in SetOptionValue() 56 FileAction action; in SetOptionValue() local 57 if (action.Open(STDOUT_FILENO, FileSpec(option_arg), false, true)) in SetOptionValue() 58 launch_info.AppendFileAction(action); in SetOptionValue() 64 FileAction action; in SetOptionValue() local 65 if (action.Open(STDERR_FILENO, FileSpec(option_arg), false, true)) in SetOptionValue() 66 launch_info.AppendFileAction(action); in SetOptionValue() 76 FileAction action; in SetOptionValue() local [all...] |
/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | EHStreamer.cpp | 50 /// Compute the actions table and gather the first action index for each landing 56 // The action table follows the call-site table in the LSDA. The individual in computeActionsTable() 92 unsigned SizeActions = 0; // Total size of all action entries for a function in computeActionsTable() 101 // Size of one action entry (typeid + next action) in computeActionsTable() 132 ActionEntry Action = { ValueForTypeID, NextAction, PrevAction }; in computeActionsTable() local 133 Actions.push_back(Action); in computeActionsTable() 137 // Record the first action of the landing pad site. in computeActionsTable() 141 // Information used when creating the call-site table. The action record in computeActionsTable() 143 // action record, relative to the start of the actions table. This value is in computeActionsTable() 211 /// containing the call, a non-zero landing pad, and an appropriate action. The [all …]
|
/llvm-project/llvm/lib/Support/ |
H A D | PGOOptions.cpp | 17 IntrusiveRefCntPtr<vfs::FileSystem> FS, PGOAction Action, in PGOOptions() argument 23 Action(Action), CSAction(CSAction), ColdOptType(ColdType), in PGOOptions() 25 (Action == SampleUse && !PseudoProbeForProfiling)), in PGOOptions() 28 // Note, we do allow ProfileFile.empty() for Action=IRUse LTO can in PGOOptions() 29 // callback with IRUse action without ProfileFile. in PGOOptions() 33 (this->Action != IRInstr && this->Action != SampleUse)); in PGOOptions() 40 assert(this->CSAction != CSIRUse || this->Action == IRUse); in PGOOptions() 43 assert(this->MemoryProfile.empty() || this->Action != PGOOptions::IRInstr); in PGOOptions() 45 // If neither Action nor CSAction nor MemoryProfile are set, in PGOOptions() 47 assert(this->Action != NoAction || this->CSAction != NoCSAction || in PGOOptions() [all …]
|
/llvm-project/llvm/lib/DWARFLinker/Parallel/ |
H A D | DependencyTracker.h | 80 /// \returns true if the specified action is for the "PlainDwarf". 81 bool isLiveAction(LiveRootWorklistActionTy Action) { in isLiveAction() argument 82 switch (Action) { in isLiveAction() 93 /// \returns true if the specified action is for the "TypeTable". 94 bool isTypeAction(LiveRootWorklistActionTy Action) { in isTypeAction() argument 95 switch (Action) { in isTypeAction() 106 /// \returns true if the specified action affects only Root entry 108 bool isSingleAction(LiveRootWorklistActionTy Action) { in isSingleAction() argument 109 switch (Action) { in isSingleAction() 119 /// \returns true if the specified action affects only Root entry [all …]
|
/llvm-project/llvm/utils/ |
H A D | llvm-original-di-preservation.py | 16 def __init__(self, action, bb_name, fn_name, instr): argument 17 self.action = action 23 return self.action + self.bb_name + self.fn_name + self.instr 27 def __init__(self, action, fn_name): argument 28 self.action = action 32 return self.action + self.fn_name 36 def __init__(self, action, name, fn_name): argument 37 self.action = action 42 return self.action + self.name + self.fn_name 88 "Action", [all …]
|
/llvm-project/libc/fuzzing/__support/ |
H A D | hashtable_fuzz.cpp | 51 // check if there is enough space for the action byte and the in LLVMFuzzerCustomMutator() 55 // skip the action byte in LLVMFuzzerCustomMutator() 66 // move to the next action in LLVMFuzzerCustomMutator() 74 struct Action { argument 102 Action next_action() { in next_action() 106 return {Action::Tag::CrossCheck, {}}; in next_action() 108 return {Action::Tag::Find, next_string()}; in next_action() 110 return {Action::Tag::Insert, next_string()}; in next_action() 151 Action action in LLVMFuzzerTestOneInput() 72 struct Action { global() struct 73 tagLIBC_NAMESPACE::Action global() argument 150 Action action = global_status.next_action(); LLVMFuzzerTestOneInput() local [all...] |
/llvm-project/mlir/lib/Debug/Observers/ |
H A D | ActionLogging.cpp | 11 #include "mlir/IR/Action.h" 22 bool ActionLogger::shouldLog(const ActionActiveStack *action) { in shouldLog() argument 28 return manager->match(action->getAction()); in shouldLog() 32 void ActionLogger::beforeExecute(const ActionActiveStack *action, in beforeExecute() argument 34 if (!shouldLog(action)) in beforeExecute() 53 os << "Action "; in beforeExecute() 55 action->getAction().print(os); in beforeExecute() 57 os << action->getAction().getTag(); in beforeExecute() 60 interleaveComma(action->getAction().getContextIRUnits(), os); in beforeExecute() 66 void ActionLogger::afterExecute(const ActionActiveStack *action) { in afterExecute() argument [all …]
|
/llvm-project/llvm/include/llvm/Target/ |
H A D | TargetCallingConv.td | 23 /// delegate to another action if the predicate is true. 29 /// Action A. 40 /// Action A. 45 /// apply Action A. 50 /// apply Action A. 55 /// apply Action A. 60 /// apply Action A. 65 /// attribute, apply Action A. 70 /// parameter attribute, apply Action A. 79 /// the specified action. [all …]
|