Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SandboxIR][Tracker] Track InsertIntoBB #101595

Merged
merged 1 commit into from
Aug 3, 2024
Merged

[SandboxIR][Tracker] Track InsertIntoBB #101595

merged 1 commit into from
Aug 3, 2024

Conversation

vporpo
Copy link
Contributor

@vporpo vporpo commented Aug 2, 2024

This patch implements tracking for the insertion of a sandboxir::Instruction into a sandboxir::BasicBlock.

@@ -291,6 +291,22 @@ class MoveInstr : public IRChangeBase {
#endif // NDEBUG
};

class InsertIntoBB : public IRChangeBase {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

class InsertIntoBB final : public IRChangeBase { ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think all of them should be marked as final.

void revert() final;
void accept() final {}
#ifndef NDEBUG
void dump(raw_ostream &OS) const final {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you may consider some CRTP to automate dump methods, like

StringRef Name = getTypeName<DerivedT>();

(still doesn't address the gdb issue of not being able to call methods in parent classes, but something to think about)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I have to fix both these dumps and the Value dumps.

This tracks the insertion of an Instruction into a BasicBlock.
@vporpo vporpo merged commit 85da961 into llvm:main Aug 3, 2024
5 of 7 checks passed
kutemeikito added a commit to kutemeikito/llvm-project that referenced this pull request Aug 4, 2024
* 'main' of https://github.com/llvm/llvm-project:
  [RISCV] Improve hasAllNBitUsers for users of SLLI.
  [RISCV] Invert if conditions in the switch in RISCVDAGToDAGISel::hasAllNBitUsers. NFC
  [Transforms] Construct SmallVector with ArrayRef (NFC) (llvm#101851)
  [RISCV] Capitalize some variable names. NFC
  [sanitizer_common] Fix UnwindFast on SPARC (llvm#101634)
  [builtins] Fix divtc3.c etc. compilation on Solaris/SPARC with gcc (llvm#101662)
  [NFC][asan] Track current dynamic init module (llvm#101597)
  [libc] enable most of the entrypoints on aarch64 (llvm#101797)
  [SandboxIR][Tracker] Track InsertIntoBB (llvm#101595)
  [SCEV] Use const SCEV * explicitly in more places.
  [ELF] Move outputSections into Ctx. NFC
  [ELF] Move ElfSym into Ctx. NFC
  [ELF] Move Out into Ctx. NFC
  [test][asan] Fix the test checks
  [NFC][asan] Switch from list to DynInitGlobalsByModule (llvm#101596)

Signed-off-by: Edwiin Kusuma Jaya <kutemeikito0905@gmail.com>
banach-space pushed a commit to banach-space/llvm-project that referenced this pull request Aug 7, 2024
This patch implements tracking for the insertion of a
sandboxir::Instruction into a sandboxir::BasicBlock.
kstoimenov pushed a commit to kstoimenov/llvm-project that referenced this pull request Aug 15, 2024
This patch implements tracking for the insertion of a
sandboxir::Instruction into a sandboxir::BasicBlock.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants