diff options
| author | Rahul Joshi <rjoshi@nvidia.com> | 2024-08-16 09:26:57 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-16 09:26:57 -0700 |
| commit | ddda37a6c72f0d2fb315d53043ed5e7a39eddfe0 (patch) | |
| tree | d850e7c07b9da0a232bab4f2501d93ca2df0b077 /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface | |
| parent | 97f0ab71c002e8a14142be3a117b3091ab75c552 (diff) | |
[TableGen] Refactor Intrinsic handling in TableGen (#103980)
CodeGenIntrinsic changes:
- Use `const` Record pointers, and `StringRef` when possible.
- Default initialize several fields with their definition instead of in
the constructor.
- Simplify various string checks in the constructor using StringRef
starts_with()/ends_with() functions.
- Eliminate first argument to `setDefaultProperties` and use `TheDef`
class member instead.
IntrinsicEmitter changes:
- Emit `namespace llvm::Intrinsic` instead of nested namespaces.
- End generated comments with a .
- Use range based for loops, and early continue within loops.
- Emit `static constexpr` instead of `static const` for arrays.
- Change `compareFnAttributes` to use std::tie() to compare intrinsic
attributes and return a default value when all attributes are equal.
STLExtras:
- Add std::replace wrapper which takes a range.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface')
0 files changed, 0 insertions, 0 deletions
